From ded9f32667d7fc8db672b9360162bc2ec6b095f7 Mon Sep 17 00:00:00 2001 From: coletdev Date: Fri, 4 Mar 2022 20:27:09 +1300 Subject: [PATCH] [extractor] Support `--mark-watched` without `_NETRC_MACHINE` (#2939) Authored by: coletdjnz --- yt_dlp/extractor/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)