Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
ab1e81ba
Commit
ab1e81ba
authored
Nov 24, 2017
by
muhammad-ammar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
48bc2b32
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletions
+12
-1
common/lib/xmodule/xmodule/video_module/video_handlers.py
+1
-1
common/test/db_fixtures/video_config.json
+11
-0
No files found.
common/lib/xmodule/xmodule/video_module/video_handlers.py
View file @
ab1e81ba
...
@@ -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
,
...
...
common/test/db_fixtures/video_config.json
0 → 100644
View file @
ab1e81ba
[
{
"pk"
:
2
,
"model"
:
"video_config.videotranscriptenabledflag"
,
"fields"
:
{
"enabled"
:
1
,
"enabled_for_all_courses"
:
1
,
"change_date"
:
"2016-04-21 10:19:32.034856"
}
}
]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment