Commit ab1e81ba by muhammad-ammar

fix

parent 48bc2b32
...@@ -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: if response.status_code == 404 and feature_enabled:
# 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,
......
[
{
"pk": 2,
"model": "video_config.videotranscriptenabledflag",
"fields": {
"enabled": 1,
"enabled_for_all_courses": 1,
"change_date": "2016-04-21 10:19:32.034856"
}
}
]
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