1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-06-06 00:49:20 +02:00

[extractor] Support --mark-watched without _NETRC_MACHINE (#2939)

Authored by: coletdjnz
This commit is contained in:
coletdev
2022-03-04 20:27:09 +13:00
committed by GitHub
parent 45806d44a7
commit ded9f32667

View File

@@ -3678,7 +3678,7 @@ class InfoExtractor(object):
def mark_watched(self, *args, **kwargs):
if not self.get_param('mark_watched', False):
return
if (self._get_login_info()[0] is not None
if (hasattr(self, '_NETRC_MACHINE') and self._get_login_info()[0] is not None
or self.get_param('cookiefile')
or self.get_param('cookiesfrombrowser')):
self._mark_watched(*args, **kwargs)