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
48bc2b32
Commit
48bc2b32
authored
Nov 24, 2017
by
muhammad-ammar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
29e3a4ff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
cms/djangoapps/contentstore/views/tests/test_transcripts.py
+1
-1
common/lib/xmodule/xmodule/video_module/video_handlers.py
+1
-1
No files found.
cms/djangoapps/contentstore/views/tests/test_transcripts.py
View file @
48bc2b32
...
...
@@ -141,7 +141,7 @@ class TestUploadTranscripts(BaseTranscripts):
"""
# verify that transcript should not be in contentstore
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
)
# verify uploaded transcript content
...
...
common/lib/xmodule/xmodule/video_module/video_handlers.py
View file @
48bc2b32
...
...
@@ -251,7 +251,7 @@ class VideoStudentViewHandlers(object):
# Try to return static URL redirection as last resort
# if no translation is required
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.
transcript
=
get_video_transcript_content
(
language_code
=
self
.
transcript_language
,
...
...
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