forked from 0x2620/pandora
python3 decode
This commit is contained in:
parent
0893715069
commit
5488eaf223
1 changed files with 3 additions and 1 deletions
|
@ -93,7 +93,9 @@ def download(item_id, url):
|
|||
return '%s contains no videos' % url
|
||||
media = info[0]
|
||||
cdir = os.path.abspath(os.curdir)
|
||||
tmp = tempfile.mkdtemp().decode('utf-8')
|
||||
tmp = tempfile.mkdtemp()
|
||||
if isinstance(tmp, bytes):
|
||||
tmp = tmp.decode('utf-8')
|
||||
os.chdir(tmp)
|
||||
cmd = ['youtube-dl', '-q', media['url']]
|
||||
p = subprocess.Popen(cmd,
|
||||
|
|
Loading…
Reference in a new issue