mirror of
https://github.com/bellingcat/auto-archiver.git
synced 2026-06-13 13:48:28 +03:00
Fixed wwww (4 w's) to www in youtubedl
This commit is contained in:
@@ -13,7 +13,7 @@ class YoutubeDLArchiver(Archiver):
|
|||||||
|
|
||||||
def download(self, url, check_if_exists=False):
|
def download(self, url, check_if_exists=False):
|
||||||
netloc = self.get_netloc(url)
|
netloc = self.get_netloc(url)
|
||||||
if netloc in ['facebook.com', 'wwww.facebook.com'] and os.getenv('FB_COOKIE'):
|
if netloc in ['facebook.com', 'www.facebook.com'] and os.getenv('FB_COOKIE'):
|
||||||
logger.info('Using Facebook cookie')
|
logger.info('Using Facebook cookie')
|
||||||
yt_dlp.utils.std_headers['cookie'] = os.getenv('FB_COOKIE')
|
yt_dlp.utils.std_headers['cookie'] = os.getenv('FB_COOKIE')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user