A feature-rich command-line audio/video downloader
[youtube] Make --write-annotations non fatal (closes #21452)
Sergey M․c40714cdee0c
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.pyindex 7b630b191f..1010c8616c 100644--- a/youtube_dl/extractor/youtube.py+++ b/youtube_dl/extractor/youtube.py@@ -1581,8 +1581,15 @@ class YoutubeIE(YoutubeBaseInfoExtractor):return video_iddef _extract_annotations(self, video_id):- url = 'https://www.youtube.com/annotations_invideo?features=1&legacy=1&video_id=%s' % video_id- return self._download_webpage(url, video_id, note='Searching for annotations.', errnote='Unable to download video annotations.')+ return self._download_webpage(+ 'https://www.youtube.com/annotations_invideo', video_id,+ note='Downloading annotations',+ errnote='Unable to download video annotations', fatal=False,+ query={+ 'features': 1,+ 'legacy': 1,+ 'video_id': video_id,+ })@staticmethoddef _extract_chapters(description, duration):