Skip to content
Snippets Groups Projects
Unverified Commit 3c04f41d authored by AsadAzam's avatar AsadAzam Committed by GitHub
Browse files

Merge pull request #18877 from edx/asad/educator-3335-fix-download-transcript-500-error

Fixed download transcript 500 error
parents bbc1cc9f 0ec8e384
Branches
Tags
No related merge requests found
......@@ -611,7 +611,7 @@ def convert_video_transcript(file_name, content, output_format):
"""
name_and_extension = os.path.splitext(file_name)
basename, input_format = name_and_extension[0], name_and_extension[1][1:]
filename = '{base_name}.{ext}'.format(base_name=basename.encode('utf8'), ext=output_format)
filename = u'{base_name}.{ext}'.format(base_name=basename, ext=output_format)
converted_transcript = Transcript.convert(content, input_format=input_format, output_format=output_format)
return dict(filename=filename, content=converted_transcript)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment