mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-08-09 13:39:40 +00:00
[postprocessor] Fix chapters if duration is not extracted (#6037)
Authored by: bashonly
This commit is contained in:
@@ -23,6 +23,7 @@ class ModifyChaptersPP(FFmpegPostProcessor):
|
||||
|
||||
@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 [],
|
||||
|
Reference in New Issue
Block a user