1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02: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
#-*- 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,
}