diff options
author | Sergey M․ <dstftw@gmail.com> | 2019-06-20 00:57:58 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2019-06-20 00:57:58 +0700 |
commit | c40714cdee0ce3de1a5f6e17a61d3ee4c610ae63 (patch) | |
tree | bf9ed60b85408abd1681ba42dea902120cdf784a | |
parent | 7c24a58bdb60af80137beac85c8804c70194a455 (diff) |
[youtube] Make --write-annotations non fatal (closes #21452)
-rw-r--r-- | youtube_dl/extractor/youtube.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 7b630b191..1010c8616 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -1581,8 +1581,15 @@ class YoutubeIE(YoutubeBaseInfoExtractor): return video_id def _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, + }) @staticmethod def _extract_chapters(description, duration): |