]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/postprocessor/modify_chapters.py
[postprocessor] Fix chapters if duration is not extracted (#6037)
[yt-dlp.git] / yt_dlp / postprocessor / modify_chapters.py
index a745b4524cdedfb0e8c94dc5fd71bab86fc99228..f5219868c842f7b8aa2fa3023e47a346df45928a 100644 (file)
@@ -23,6 +23,7 @@ def __init__(self, downloader, remove_chapters_patterns=None, remove_sponsor_seg
 
     @PostProcessor._restrict_to(images=False)
     def run(self, info):
+        self._fixup_chapters(info)
         # Chapters must be preserved intact when downloading multiple formats of the same video.
         chapters, sponsor_chapters = self._mark_chapters_to_remove(
             copy.deepcopy(info.get('chapters')) or [],