merge from master and fixes

This commit is contained in:
msramalho
2022-05-10 23:09:33 +02:00
parent f6e8da34b8
commit bca960b228
4 changed files with 95 additions and 46 deletions

View File

@@ -17,7 +17,7 @@ class YoutubeDLArchiver(Archiver):
def download(self, url, check_if_exists=False):
netloc = self.get_netloc(url)
if netloc in ['facebook.com', 'www.facebook.com']:
if netloc in ['facebook.com', 'www.facebook.com'] and self.fb_cookie:
logger.debug('Using Facebook cookie')
yt_dlp.utils.std_headers['cookie'] = self.fb_cookie