Commit 48bc2b32 by muhammad-ammar

fix

parent 29e3a4ff
...@@ -141,7 +141,7 @@ class TestUploadTranscripts(BaseTranscripts): ...@@ -141,7 +141,7 @@ class TestUploadTranscripts(BaseTranscripts):
""" """
# verify that transcript should not be in contentstore # verify that transcript should not be in contentstore
content_location = StaticContent.compute_location(self.course.id, 'subs_{0}.srt.sjson'.format(filename)) content_location = StaticContent.compute_location(self.course.id, 'subs_{0}.srt.sjson'.format(filename))
with self.assertRaises(NotFoundError) as item_not_found: with self.assertRaises(NotFoundError):
contentstore().find(content_location) contentstore().find(content_location)
# verify uploaded transcript content # verify uploaded transcript content
......
...@@ -251,7 +251,7 @@ class VideoStudentViewHandlers(object): ...@@ -251,7 +251,7 @@ class VideoStudentViewHandlers(object):
# Try to return static URL redirection as last resort # Try to return static URL redirection as last resort
# if no translation is required # if no translation is required
response = self.get_static_transcript(request, transcripts) response = self.get_static_transcript(request, transcripts)
if response.status_code == 404 and feature_enabled: if response.status_code == 404:
# Try to get transcript from edx-val as a last resort. # Try to get transcript from edx-val as a last resort.
transcript = get_video_transcript_content( transcript = get_video_transcript_content(
language_code=self.transcript_language, language_code=self.transcript_language,
......
Markdown is supported
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