mirror of
https://github.com/azlux/botamusique
synced 2024-11-27 15:44:05 +00:00
Compare commits
No commits in common. "0650e7279f5f777cbeda51b9b40fb4155c60d227" and "16f18a57b4cbfb17725905f2c7906bdc35d3f0f0" have entirely different histories.
0650e7279f
...
16f18a57b4
@ -129,15 +129,6 @@ class URLItem(BaseItem):
|
||||
ydl_opts = {
|
||||
'noplaylist': True
|
||||
}
|
||||
|
||||
cookie = var.config.get('youtube_dl', 'cookie_file')
|
||||
if cookie:
|
||||
ydl_opts['cookiefile'] = var.config.get('youtube_dl', 'cookie_file')
|
||||
|
||||
user_agent = var.config.get('youtube_dl', 'user_agent')
|
||||
if user_agent:
|
||||
youtube_dl.utils.std_headers['User-Agent'] = var.config.get('youtube_dl', 'user_agent')\
|
||||
|
||||
succeed = False
|
||||
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
|
||||
attempts = var.config.getint('bot', 'download_attempts')
|
||||
|
Loading…
Reference in New Issue
Block a user