aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/postprocessor/modify_chapters.py
diff options
context:
space:
mode:
authorbashonly <88596187+bashonly@users.noreply.github.com>2023-03-08 07:10:19 -0600
committerGitHub <noreply@github.com>2023-03-08 13:10:19 +0000
commit01ddec7e661bf90dc4c34e6924eb9d7629886cef (patch)
treec233896797c7ac3102224948cd976598882e7997 /yt_dlp/postprocessor/modify_chapters.py
parent6f4fc5660f40f3458882a8f51601eae4af7be609 (diff)
downloadhypervideo-pre-01ddec7e661bf90dc4c34e6924eb9d7629886cef.tar.lz
hypervideo-pre-01ddec7e661bf90dc4c34e6924eb9d7629886cef.tar.xz
hypervideo-pre-01ddec7e661bf90dc4c34e6924eb9d7629886cef.zip
[postprocessor] Fix chapters if duration is not extracted (#6037)
Authored by: bashonly
Diffstat (limited to 'yt_dlp/postprocessor/modify_chapters.py')
-rw-r--r--yt_dlp/postprocessor/modify_chapters.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/yt_dlp/postprocessor/modify_chapters.py b/yt_dlp/postprocessor/modify_chapters.py
index a745b4524..f5219868c 100644
--- a/yt_dlp/postprocessor/modify_chapters.py
+++ b/yt_dlp/postprocessor/modify_chapters.py
@@ -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 [],