mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-10-31 23:02:40 +00:00
[extractor] Support --mark-watched
without _NETRC_MACHINE
(#2939)
Authored by: coletdjnz
This commit is contained in:
parent
45806d44a7
commit
ded9f32667
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue