youtube-dlc 호환 문제 수정

This commit is contained in:
joyfuI
2020-12-13 00:45:52 +09:00
parent 2043373395
commit fdb85f4ffd
5 changed files with 7 additions and 4 deletions

View File

@@ -113,7 +113,7 @@ class LogicNormal(object):
if 'cookiefile' in kwagrs and kwagrs['cookiefile']:
opts['cookiefile'] = kwagrs['cookiefile']
dateafter = kwagrs.get('dateafter')
headers = kwagrs.get('headers')
headers = kwagrs.get('headers', {})
youtube_dl = MyYoutubeDL(plugin, url, filename, temp_path, save_path, opts, dateafter, headers=headers)
youtube_dl.key = kwagrs.get('key')
LogicNormal.youtube_dl_list.append(youtube_dl) # 리스트 추가