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
d20af4a2
Commit
d20af4a2
authored
Jun 15, 2016
by
Greg Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add VAL "Duplicate" status
Added duplicate video failed status for VAL.
parent
09cdc6f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
cms/djangoapps/contentstore/views/videos.py
+7
-3
No files found.
cms/djangoapps/contentstore/views/videos.py
View file @
d20af4a2
...
...
@@ -44,6 +44,9 @@ class StatusDisplayStrings(object):
_COMPLETE
=
ugettext_noop
(
"Ready"
)
# Translators: This is the status for a video that the servers have failed to process
_FAILED
=
ugettext_noop
(
"Failed"
)
# Translators: This is the status for a video which has failed
# due to being flagged as a duplicate by an external or internal CMS
_DUPLICATE
=
ugettext_noop
(
"Failed Duplicate"
)
# Translators: This is the status for a video for which an invalid
# processing token was provided in the course settings
_INVALID_TOKEN
=
ugettext_noop
(
"Invalid Token"
)
...
...
@@ -61,6 +64,7 @@ class StatusDisplayStrings(object):
"file_complete"
:
_COMPLETE
,
"file_corrupt"
:
_FAILED
,
"pipeline_error"
:
_FAILED
,
"duplicate"
:
_DUPLICATE
,
"invalid_token"
:
_INVALID_TOKEN
,
"imported"
:
_IMPORTED
,
}
...
...
@@ -311,9 +315,9 @@ def videos_post(course, request):
edx_video_id
=
unicode
(
uuid4
())
key
=
storage_service_key
(
bucket
,
file_name
=
edx_video_id
)
for
metadata_name
,
value
in
[
(
"course_video_upload_token"
,
course_video_upload_token
),
(
"client_video_id"
,
file_name
),
(
"course_key"
,
unicode
(
course
.
id
)),
(
"course_video_upload_token"
,
course_video_upload_token
),
(
"client_video_id"
,
file_name
),
(
"course_key"
,
unicode
(
course
.
id
)),
]:
key
.
set_metadata
(
metadata_name
,
value
)
upload_url
=
key
.
generate_url
(
...
...
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