aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcoletdev <coletdjnz@protonmail.com>2022-03-04 20:27:09 +1300
committerGitHub <noreply@github.com>2022-03-03 23:27:09 -0800
commitded9f32667d7fc8db672b9360162bc2ec6b095f7 (patch)
treeceb27d70337db2681675228fb1cf274dd087aa57
parent45806d44a7bc96dc0199410fec81cdce6015a546 (diff)
downloadhypervideo-pre-ded9f32667d7fc8db672b9360162bc2ec6b095f7.tar.lz
hypervideo-pre-ded9f32667d7fc8db672b9360162bc2ec6b095f7.tar.xz
hypervideo-pre-ded9f32667d7fc8db672b9360162bc2ec6b095f7.zip
[extractor] Support `--mark-watched` without `_NETRC_MACHINE` (#2939)
Authored by: coletdjnz
-rw-r--r--yt_dlp/extractor/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py
index d8bb21137..53b21ece6 100644
--- a/yt_dlp/extractor/common.py
+++ b/yt_dlp/extractor/common.py
@@ -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)