mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-21 13:23:02 +01:00
update
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
#-*- coding: utf-8 -*-
|
||||||
#
|
#
|
||||||
# youtube_dl worker
|
# youtube_dl worker
|
||||||
#
|
#
|
||||||
@@ -33,7 +34,7 @@ def download(url):
|
|||||||
try:
|
try:
|
||||||
opts = {
|
opts = {
|
||||||
'format': os.getenv('FORMAT', 'best'),
|
'format': os.getenv('FORMAT', 'best'),
|
||||||
'outtmpl': os.getenv('OUTTMPL', '%(title)s-%(id)s.%(ext)s'),
|
'outtmpl': unicode(os.getenv('OUTTMPL', '%(title)s-%(id)s.%(ext)s'), 'utf-8'),
|
||||||
'progress_hooks': [hook],
|
'progress_hooks': [hook],
|
||||||
'writeinfojson': True,
|
'writeinfojson': True,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user