2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-21 13:23:02 +01:00
This commit is contained in:
kev
2015-07-13 12:45:26 +08:00
parent 81d0923d13
commit 3fc7831899

View File

@@ -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,
} }