From 6b65df9cad6319ac9a88c3061b070a9fbf165c9c Mon Sep 17 00:00:00 2001 From: dirkf Date: Tue, 15 Nov 2022 19:04:07 +0000 Subject: [PATCH] [common] Make mark_watched() more lenient --- youtube_dl/extractor/common.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index 797c35fd5..11c58d367 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -3001,7 +3001,11 @@ class InfoExtractor(object): if (self._downloader.params.get('mark_watched', False) and (self._get_login_info()[0] is not None or self._downloader.params.get('cookiefile') is not None)): - self._mark_watched(*args, **kwargs) + # extractors apart from YoutubeIE can mark: be more lenient + try: + self._mark_watched(*args, **kwargs) + except NotImplementedError: + self.report_warning('Marking as watched is not supported') def _mark_watched(self, *args, **kwargs): raise NotImplementedError('This method must be implemented by subclasses')