A feature-rich command-line audio/video downloader
[extractor/youtube] Do not warn on duplicate chapters
pukkandan709ee214170c
diff --git a/yt_dlp/extractor/youtube.py b/yt_dlp/extractor/youtube.pyindex c4aa6f8fe1..a9d838345d 100644--- a/yt_dlp/extractor/youtube.py+++ b/yt_dlp/extractor/youtube.py@@ -3034,8 +3034,9 @@ class YoutubeIE(YoutubeBaseInfoExtractor):self.report_warning(f'Incomplete chapter {idx}')elif chapters[-1]['start_time'] <= chapter['start_time'] <= duration:chapters.append(chapter)- else:- self.report_warning(f'Invalid start time for chapter "{chapter["title"]}"')+ elif chapter not in chapters:+ self.report_warning(+ f'Invalid start time ({chapter["start_time"]} < {chapters[-1]["start_time"]}) for chapter "{chapter["title"]}"')return chapters[1:]def _extract_comment(self, comment_renderer, parent=None):