diff options
author | saksham1115 <saksham115@gmail.com> | 2016-06-29 11:18:34 +0000 |
---|---|---|
committer | saksham1115 <saksham115@gmail.com> | 2016-07-19 17:29:09 +0000 |
commit | 316bef690842b5015fce68d028f92cb7d6766e41 (patch) | |
tree | d37c23ccb4e47df40ff2a488621363b470eb7799 /mediagoblin/edit | |
parent | 2c36555bfe4b21880d82b95c4c7a676967f10f96 (diff) | |
download | mediagoblin-316bef690842b5015fce68d028f92cb7d6766e41.tar.lz mediagoblin-316bef690842b5015fce68d028f92cb7d6766e41.tar.xz mediagoblin-316bef690842b5015fce68d028f92cb7d6766e41.zip |
Opening ths subtitle using absolute path and open function
Diffstat (limited to 'mediagoblin/edit')
-rw-r--r-- | mediagoblin/edit/views.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mediagoblin/edit/views.py b/mediagoblin/edit/views.py index 33643bf8..ff5c0881 100644 --- a/mediagoblin/edit/views.py +++ b/mediagoblin/edit/views.py @@ -580,13 +580,14 @@ def edit_metadata(request, media): 'media':media}) -from mediagoblin.tools.subtitles import get_path +from mediagoblin.tools.subtitles import open_subtitle @require_active_login @path_subtitle def custom_subtitles(request,path=None): - form = forms.CustomizeSubtitlesForm(request.form) - path = get_path(path) + text = open_subtitle(path) + form = forms.CustomizeSubtitlesForm(request.form, + subtitle=text) return render_to_response( request, "mediagoblin/edit/custom_subtitles.html", |