Merge pull request #24800 from regisb/regisb/fix-transcript-upload-to-s3

Fix TypeError during transcript upload to S3
This commit is contained in:
Syed Muhammad Dawoud Sheraz Ali
2021-01-25 17:20:04 +05:00
committed by GitHub
3 changed files with 4 additions and 4 deletions

View File

@@ -233,7 +233,7 @@ def transcript_upload_handler(request):
content=transcript_file.read().decode('utf-8'),
input_format=Transcript.SRT,
output_format=Transcript.SJSON
)
).encode()
create_or_update_video_transcript(
video_id=edx_video_id,
language_code=language_code,

View File

@@ -109,7 +109,7 @@ def save_video_transcript(edx_video_id, input_format, transcript_content, langua
content=transcript_content,
input_format=input_format,
output_format=Transcript.SJSON
)
).encode()
create_or_update_video_transcript(
video_id=edx_video_id,
language_code=language_code,
@@ -222,7 +222,7 @@ def upload_transcripts(request):
content=transcript_file.read().decode('utf-8'),
input_format=Transcript.SRT,
output_format=Transcript.SJSON
)
).encode()
transcript_created = create_or_update_video_transcript(
video_id=edx_video_id,
language_code=u'en',

View File

@@ -509,7 +509,7 @@ class VideoStudioViewHandlers(object):
content=transcript_file.read().decode('utf-8'),
input_format=Transcript.SRT,
output_format=Transcript.SJSON
)
).encode()
create_or_update_video_transcript(
video_id=edx_video_id,
language_code=language_code,