Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-video-worker
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-worker
Commits
20e5d123
Commit
20e5d123
authored
Jul 21, 2017
by
muzaffaryousaf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace doc string formatter with comment literals.
parent
d2ab3f10
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
21 deletions
+7
-21
.pep8
+0
-1
.travis.yml
+1
-0
scripts/test_hls.py
+2
-2
video_worker/generate_delivery.py
+4
-18
No files found.
.pep8
View file @
20e5d123
[pep8]
max-line-length = 120
ignore = E402
exclude = dependencies, scripts
.travis.yml
View file @
20e5d123
language
:
python
dist
:
precise
python
:
-
"
2.7"
sudo
:
required
...
...
scripts/test_hls.py
View file @
20e5d123
...
...
@@ -5,8 +5,8 @@ VW = VideoWorker()
VW
=
VideoWorker
(
veda_id
=
'XXXXXXXXT114-V013800'
,
encode_profile
=
'hls'
,
jobid
=
'xxxxx'
encode_profile
=
'hls'
,
jobid
=
'xxxxx'
)
VW
.
run
()
video_worker/generate_delivery.py
View file @
20e5d123
...
...
@@ -14,7 +14,7 @@ from os.path import expanduser
import
sys
import
shutil
from
global_vars
import
*
from
global_vars
import
MULTI_UPLOAD_BARRIER
from
reporting
import
ErrorObject
from
config
import
WorkerSetup
...
...
@@ -71,14 +71,10 @@ class Deliverable():
)
.
hexdigest
()
if
self
.
upload_filesize
<
MULTI_UPLOAD_BARRIER
:
"""
Upload single part
"""
# Upload single part
self
.
delivered
=
self
.
_s3_upload
()
else
:
"""
Upload multipart
"""
# Upload multipart
self
.
delivered
=
self
.
_boto_multipart
()
if
self
.
delivered
is
False
:
...
...
@@ -157,9 +153,7 @@ class Deliverable():
)
return
False
"""
Upload and stitch parts
"""
# Upload and stitch parts
mp
=
b
.
initiate_multipart_upload
(
self
.
output_file
)
x
=
1
...
...
@@ -180,11 +174,3 @@ class Deliverable():
# Clean up multipart
shutil
.
rmtree
(
os
.
path
.
join
(
self
.
workdir
,
self
.
output_file
.
split
(
'.'
)[
0
]))
return
True
def
main
():
pass
if
__name__
==
'__main__'
:
sys
.
exit
(
main
())
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