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
7ee3449d
Commit
7ee3449d
authored
Sep 11, 2017
by
muzaffaryousaf
Committed by
Qubad786
Sep 12, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NIT: Rename Transcription ready to "transcript ready."
parent
a5acdd45
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
VEDA_OS01/migrations/0002_auto_20170911_1113.py
+2
-2
VEDA_OS01/models.py
+2
-2
VEDA_OS01/tests/test_transcripts.py
+3
-3
VEDA_OS01/transcripts.py
+3
-3
No files found.
VEDA_OS01/migrations/0002_auto_201709
03_0730
.py
→
VEDA_OS01/migrations/0002_auto_201709
11_1113
.py
View file @
7ee3449d
# -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2017-09-
03 07:30
# Generated by Django 1.9 on 2017-09-
11 11:13
from
__future__
import
unicode_literals
import
VEDA_OS01.models
...
...
@@ -81,7 +81,7 @@ class Migration(migrations.Migration):
migrations
.
AlterField
(
model_name
=
'video'
,
name
=
'video_trans_status'
,
field
=
models
.
CharField
(
choices
=
[(
b
'Ingest'
,
b
'System Ingest'
),
(
b
'Transcode Queue'
,
b
'Transcode Queue'
),
(
b
'Active Transcode'
,
b
'Active Transcode'
),
(
b
'Transcode Retry'
,
b
'Transcode Retry'
),
(
b
'Transcode Complete'
,
b
'Transcode Complete'
),
(
b
'Deliverable Upload'
,
b
'Deliverable Upload'
),
(
b
'File Complete'
,
b
'File Complete'
),
(
b
'Transcode Error'
,
b
'Transcode Error'
),
(
b
'Corrupt File'
,
b
'Corrupt File on Ingest'
),
(
b
'Review Hold'
,
b
'Review Hold'
),
(
b
'Review Reject'
,
b
'Review Rejected'
),
(
b
'Final Publish'
,
b
'Review to Final Publish'
),
(
b
'Youtube Duplicate'
,
b
'Youtube Duplicate'
),
(
b
'In Encode Queue'
,
b
'In Encode Queue'
),
(
b
'Progress'
,
b
'In Progress'
),
(
b
'Complete'
,
b
'Complete'
),
(
b
'transcription_in_progress'
,
b
'Transcription In Progress'
),
(
b
'transcript
ion_ready'
,
b
'Transcription
Ready'
)],
default
=
b
'Ingest'
,
max_length
=
100
,
verbose_name
=
b
'Transcode Status'
),
field
=
models
.
CharField
(
choices
=
[(
b
'Ingest'
,
b
'System Ingest'
),
(
b
'Transcode Queue'
,
b
'Transcode Queue'
),
(
b
'Active Transcode'
,
b
'Active Transcode'
),
(
b
'Transcode Retry'
,
b
'Transcode Retry'
),
(
b
'Transcode Complete'
,
b
'Transcode Complete'
),
(
b
'Deliverable Upload'
,
b
'Deliverable Upload'
),
(
b
'File Complete'
,
b
'File Complete'
),
(
b
'Transcode Error'
,
b
'Transcode Error'
),
(
b
'Corrupt File'
,
b
'Corrupt File on Ingest'
),
(
b
'Review Hold'
,
b
'Review Hold'
),
(
b
'Review Reject'
,
b
'Review Rejected'
),
(
b
'Final Publish'
,
b
'Review to Final Publish'
),
(
b
'Youtube Duplicate'
,
b
'Youtube Duplicate'
),
(
b
'In Encode Queue'
,
b
'In Encode Queue'
),
(
b
'Progress'
,
b
'In Progress'
),
(
b
'Complete'
,
b
'Complete'
),
(
b
'transcription_in_progress'
,
b
'Transcription In Progress'
),
(
b
'transcript
_ready'
,
b
'Transcript
Ready'
)],
default
=
b
'Ingest'
,
max_length
=
100
,
verbose_name
=
b
'Transcode Status'
),
),
migrations
.
AddField
(
model_name
=
'transcriptprocessmetadata'
,
...
...
VEDA_OS01/models.py
View file @
7ee3449d
...
...
@@ -127,7 +127,7 @@ class VideoStatus(object):
PROGRESS
=
'Progress'
COMPLETE
=
'Complete'
TRANSCRIPTION_IN_PROGRESS
=
'transcription_in_progress'
TRANSCRIPT
ION_READY
=
'transcription
_ready'
TRANSCRIPT
_READY
=
'transcript
_ready'
CHOICES
=
(
(
SI
,
'System Ingest'
),
...
...
@@ -147,7 +147,7 @@ class VideoStatus(object):
(
PROGRESS
,
'In Progress'
),
(
COMPLETE
,
'Complete'
),
(
TRANSCRIPTION_IN_PROGRESS
,
'Transcription In Progress'
),
(
TRANSCRIPT
ION_READY
,
'Transcription
Ready'
),
(
TRANSCRIPT
_READY
,
'Transcript
Ready'
),
)
...
...
VEDA_OS01/tests/test_transcripts.py
View file @
7ee3449d
...
...
@@ -128,7 +128,7 @@ class Cielo24TranscriptTests(APITestCase):
}
self
.
video_transcript_ready_status_data
=
{
'status'
:
transcripts
.
VideoStatus
.
TRANSCRIPT
ION
_READY
,
'status'
:
transcripts
.
VideoStatus
.
TRANSCRIPT_READY
,
'edx_video_id'
:
self
.
video
.
studio_id
}
...
...
@@ -568,7 +568,7 @@ class ThreePlayTranscriptionCallbackTest(APITestCase):
{
'url'
:
CONFIG_DATA
[
'val_video_transcript_status_url'
],
'body'
:
{
'status'
:
transcripts
.
VideoStatus
.
TRANSCRIPT
ION
_READY
,
'status'
:
transcripts
.
VideoStatus
.
TRANSCRIPT_READY
,
'edx_video_id'
:
self
.
video
.
studio_id
},
'headers'
:
{
...
...
@@ -1189,7 +1189,7 @@ class ThreePlayTranscriptionCallbackTest(APITestCase):
expected_video_status_update_request
=
{
'url'
:
CONFIG_DATA
[
'val_video_transcript_status_url'
],
'body'
:
{
'status'
:
transcripts
.
VideoStatus
.
TRANSCRIPT
ION
_READY
,
'status'
:
transcripts
.
VideoStatus
.
TRANSCRIPT_READY
,
'edx_video_id'
:
self
.
video
.
studio_id
},
'headers'
:
{
...
...
VEDA_OS01/transcripts.py
View file @
7ee3449d
...
...
@@ -230,7 +230,7 @@ def cielo24_transcript_callback(sender, **kwargs):
# update transcript status for video in edx-val only if all langauge transcripts are ready
video_jobs
=
TranscriptProcessMetadata
.
objects
.
filter
(
video__studio_id
=
video_id
)
if
all
(
video_job
.
status
==
TranscriptStatus
.
READY
for
video_job
in
video_jobs
):
val_api
.
update_video_status
(
process_metadata
.
video
.
studio_id
,
VideoStatus
.
TRANSCRIPT
ION
_READY
)
val_api
.
update_video_status
(
process_metadata
.
video
.
studio_id
,
VideoStatus
.
TRANSCRIPT_READY
)
def
fetch_srt_data
(
url
,
**
request_params
):
...
...
@@ -618,7 +618,7 @@ def three_play_transcription_callback(sender, **kwargs):
# in case if there is only one language which has already been processed.
if
not
target_languages
:
val_api
.
update_video_status
(
process
.
video
.
studio_id
,
VideoStatus
.
TRANSCRIPT
ION
_READY
process
.
video
.
studio_id
,
VideoStatus
.
TRANSCRIPT_READY
)
# On success, a happy farewell log.
...
...
@@ -785,4 +785,4 @@ def retrieve_three_play_translations():
# update transcript status for video in edx-val only if all language transcripts are ready
video_jobs
=
TranscriptProcessMetadata
.
objects
.
filter
(
video__studio_id
=
translation_process
.
video
.
studio_id
)
if
all
(
video_job
.
status
==
TranscriptStatus
.
READY
for
video_job
in
video_jobs
):
val_api
.
update_video_status
(
translation_process
.
video
.
studio_id
,
VideoStatus
.
TRANSCRIPT
ION
_READY
)
val_api
.
update_video_status
(
translation_process
.
video
.
studio_id
,
VideoStatus
.
TRANSCRIPT_READY
)
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