diff options
author | Nil Admirari <50202386+nihil-admirari@users.noreply.github.com> | 2021-12-09 12:40:31 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-09 18:10:31 +0530 |
commit | 8157a09d22f6f4310427a7155e737c2c1bc3aef9 (patch) | |
tree | 4318ae9bea7b276a89f91a1c0e143464ef225316 /yt_dlp/postprocessor/modify_chapters.py | |
parent | b1aaf1c07fae6f6e5d4bc966016f5e5df7b6c83c (diff) | |
download | hypervideo-pre-8157a09d22f6f4310427a7155e737c2c1bc3aef9.tar.lz hypervideo-pre-8157a09d22f6f4310427a7155e737c2c1bc3aef9.tar.xz hypervideo-pre-8157a09d22f6f4310427a7155e737c2c1bc3aef9.zip |
[SponsorBlock] Add Filler and Highlight categories (#1664)
Authored by: nihil-admirari, pukkandan
Diffstat (limited to 'yt_dlp/postprocessor/modify_chapters.py')
-rw-r--r-- | yt_dlp/postprocessor/modify_chapters.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/postprocessor/modify_chapters.py b/yt_dlp/postprocessor/modify_chapters.py index 0728bdcf5..91433c364 100644 --- a/yt_dlp/postprocessor/modify_chapters.py +++ b/yt_dlp/postprocessor/modify_chapters.py @@ -24,7 +24,7 @@ class ModifyChaptersPP(FFmpegPostProcessor): *, sponsorblock_chapter_title=DEFAULT_SPONSORBLOCK_CHAPTER_TITLE, force_keyframes=False): FFmpegPostProcessor.__init__(self, downloader) self._remove_chapters_patterns = set(remove_chapters_patterns or []) - self._remove_sponsor_segments = set(remove_sponsor_segments or []) + self._remove_sponsor_segments = set(remove_sponsor_segments or []) - set(SponsorBlockPP.POI_CATEGORIES.keys()) self._ranges_to_remove = set(remove_ranges or []) self._sponsorblock_chapter_title = sponsorblock_chapter_title self._force_keyframes = force_keyframes @@ -302,7 +302,7 @@ class ModifyChaptersPP(FFmpegPostProcessor): 'name': SponsorBlockPP.CATEGORIES[category], 'category_names': [SponsorBlockPP.CATEGORIES[c] for c in cats] }) - c['title'] = self._downloader.evaluate_outtmpl(self._sponsorblock_chapter_title, c) + c['title'] = self._downloader.evaluate_outtmpl(self._sponsorblock_chapter_title, c.copy()) # Merge identically named sponsors. if (new_chapters and 'categories' in new_chapters[-1] and new_chapters[-1]['title'] == c['title']): |