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
f7010582
Commit
f7010582
authored
Jun 17, 2016
by
Gregory Martin
Committed by
GitHub
Jun 17, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12764 from edx/yro-add_val_duplicate_video
Add VAL "Duplicate" status
parents
a7bd5295
d20af4a2
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 @
f7010582
...
@@ -44,6 +44,9 @@ class StatusDisplayStrings(object):
...
@@ -44,6 +44,9 @@ class StatusDisplayStrings(object):
_COMPLETE
=
ugettext_noop
(
"Ready"
)
_COMPLETE
=
ugettext_noop
(
"Ready"
)
# Translators: This is the status for a video that the servers have failed to process
# Translators: This is the status for a video that the servers have failed to process
_FAILED
=
ugettext_noop
(
"Failed"
)
_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
# Translators: This is the status for a video for which an invalid
# processing token was provided in the course settings
# processing token was provided in the course settings
_INVALID_TOKEN
=
ugettext_noop
(
"Invalid Token"
)
_INVALID_TOKEN
=
ugettext_noop
(
"Invalid Token"
)
...
@@ -61,6 +64,7 @@ class StatusDisplayStrings(object):
...
@@ -61,6 +64,7 @@ class StatusDisplayStrings(object):
"file_complete"
:
_COMPLETE
,
"file_complete"
:
_COMPLETE
,
"file_corrupt"
:
_FAILED
,
"file_corrupt"
:
_FAILED
,
"pipeline_error"
:
_FAILED
,
"pipeline_error"
:
_FAILED
,
"duplicate"
:
_DUPLICATE
,
"invalid_token"
:
_INVALID_TOKEN
,
"invalid_token"
:
_INVALID_TOKEN
,
"imported"
:
_IMPORTED
,
"imported"
:
_IMPORTED
,
}
}
...
@@ -311,9 +315,9 @@ def videos_post(course, request):
...
@@ -311,9 +315,9 @@ def videos_post(course, request):
edx_video_id
=
unicode
(
uuid4
())
edx_video_id
=
unicode
(
uuid4
())
key
=
storage_service_key
(
bucket
,
file_name
=
edx_video_id
)
key
=
storage_service_key
(
bucket
,
file_name
=
edx_video_id
)
for
metadata_name
,
value
in
[
for
metadata_name
,
value
in
[
(
"course_video_upload_token"
,
course_video_upload_token
),
(
"course_video_upload_token"
,
course_video_upload_token
),
(
"client_video_id"
,
file_name
),
(
"client_video_id"
,
file_name
),
(
"course_key"
,
unicode
(
course
.
id
)),
(
"course_key"
,
unicode
(
course
.
id
)),
]:
]:
key
.
set_metadata
(
metadata_name
,
value
)
key
.
set_metadata
(
metadata_name
,
value
)
upload_url
=
key
.
generate_url
(
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