mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-24 05:36:56 +01:00
[extractor] Support --mark-watched
without _NETRC_MACHINE
(#2939)
Authored by: coletdjnz
This commit is contained in:
parent
45806d44a7
commit
ded9f32667
@ -3678,7 +3678,7 @@ def _get_automatic_captions(self, *args, **kwargs):
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user