Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-video-pipeline
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-video-pipeline
Commits
a5acdd45
Commit
a5acdd45
authored
Sep 06, 2017
by
Qubad786
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add fixes
parent
4d949706
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
10 deletions
+9
-10
control/tests/test_deliver_3play.py
+1
-1
control/veda_deliver_3play.py
+8
-9
No files found.
control/tests/test_deliver_3play.py
View file @
a5acdd45
...
...
@@ -87,7 +87,7 @@ class ThreePlayMediaClientTests(TestCase):
responses
.
add
(
responses
.
POST
,
u'https://api.3playmedia.com/files'
,
body
=
u'
000-111-
222'
,
body
=
u'
111
222'
,
status
=
200
)
...
...
control/veda_deliver_3play.py
View file @
a5acdd45
...
...
@@ -111,15 +111,14 @@ class ThreePLayMediaClient(object):
)
)
try
:
# A normal response should be a text containing file id and if we're getting a deserializable dict, there
# must be an error: http://support.3playmedia.com/hc/en-us/articles/227729828-Files-API-Methods
if
isinstance
(
json
.
loads
(
response
.
text
),
dict
):
raise
ThreePlayMediaPerformTranscriptionError
(
'Expected file id but got: {response}'
.
format
(
response
=
response
.
text
)
)
except
ValueError
:
return
response
.
text
# A normal response should be a text containing file id and if we're getting a deserializable dict, there
# must be an error: http://support.3playmedia.com/hc/en-us/articles/227729828-Files-API-Methods
if
isinstance
(
json
.
loads
(
response
.
text
),
dict
):
raise
ThreePlayMediaPerformTranscriptionError
(
'Expected file id but got: {response}'
.
format
(
response
=
response
.
text
)
)
return
response
.
text
def
generate_transcripts
(
self
):
"""
...
...
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