1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-20 13:58:42 +00:00
This commit is contained in:
kev 2015-07-13 12:45:26 +08:00
parent 81d0923d13
commit 3fc7831899

@ -1,4 +1,5 @@
#!/usr/bin/env python
#-*- coding: utf-8 -*-
#
# youtube_dl worker
#
@ -33,7 +34,7 @@ def download(url):
try:
opts = {
'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],
'writeinfojson': True,
}