API로 headers, cookiefile 전달 방법 추가 (#5)

* API로 headers, cookiefile 전달 방법 추가

* API로 headers, cookiefile 전달 방법 추가

Co-authored-by: joyfuI <jong970105@gmail.com>
This commit is contained in:
soju6jan
2020-12-07 15:07:05 +09:00
committed by GitHub
parent a7ee24d436
commit 33bfe6f4ee
3 changed files with 29 additions and 6 deletions

View File

@@ -111,7 +111,9 @@ class LogicNormal(object):
if 'ffmpeg_path' in kwagrs and kwagrs['ffmpeg_path']:
opts['ffmpeg_location'] = kwagrs['ffmpeg_path']
dateafter = kwagrs.get('dateafter')
youtube_dl = MyYoutubeDL(plugin, url, filename, temp_path, save_path, opts, dateafter)
# 2020-12-06 by soju6jan. api로 headers, cookiefile 전달
youtube_dl = MyYoutubeDL(plugin, url, filename, temp_path, save_path, opts, dateafter, headers=kwagrs['headers'], cookiefile=kwagrs['cookiefile'])
# by soju6jan
youtube_dl.key = kwagrs.get('key')
LogicNormal.youtube_dl_list.append(youtube_dl) # 리스트 추가
return youtube_dl