aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/options.py
diff options
context:
space:
mode:
authorAjay Ramachandran <dev@ajay.app>2022-10-18 12:51:57 -0400
committerGitHub <noreply@github.com>2022-10-18 22:21:57 +0530
commit63c547d71ceae6be181948b4b6ce4180b16f4209 (patch)
tree9e08a01f9e7203135985661fe0605808bbc8c249 /yt_dlp/options.py
parent814bba3933ca36a79c68ac737b805cf25c407521 (diff)
downloadhypervideo-pre-63c547d71ceae6be181948b4b6ce4180b16f4209.tar.lz
hypervideo-pre-63c547d71ceae6be181948b4b6ce4180b16f4209.tar.xz
hypervideo-pre-63c547d71ceae6be181948b4b6ce4180b16f4209.zip
[SponsorBlock] Support `chapter` category (#5260)
Authored by: ajayyy, pukkandan
Diffstat (limited to 'yt_dlp/options.py')
-rw-r--r--yt_dlp/options.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/options.py b/yt_dlp/options.py
index 5ff375fcf..d3dfee820 100644
--- a/yt_dlp/options.py
+++ b/yt_dlp/options.py
@@ -1737,7 +1737,7 @@ def create_parser():
'--sponsorblock-remove', metavar='CATS',
dest='sponsorblock_remove', default=set(), action='callback', type='str',
callback=_set_from_options_callback, callback_kwargs={
- 'allowed_values': set(SponsorBlockPP.CATEGORIES.keys()) - set(SponsorBlockPP.POI_CATEGORIES.keys()),
+ 'allowed_values': set(SponsorBlockPP.CATEGORIES.keys()) - set(SponsorBlockPP.NON_SKIPPABLE_CATEGORIES.keys()),
# Note: From https://wiki.sponsor.ajay.app/w/Types:
# The filler category is very aggressive.
# It is strongly recommended to not use this in a client by default.
@@ -1747,7 +1747,7 @@ def create_parser():
'If a category is present in both mark and remove, remove takes precedence. '
'The syntax and available categories are the same as for --sponsorblock-mark '
'except that "default" refers to "all,-filler" '
- f'and {", ".join(SponsorBlockPP.POI_CATEGORIES.keys())} is not available'))
+ f'and {", ".join(SponsorBlockPP.NON_SKIPPABLE_CATEGORIES.keys())} are not available'))
sponsorblock.add_option(
'--sponsorblock-chapter-title', metavar='TEMPLATE',
default=DEFAULT_SPONSORBLOCK_CHAPTER_TITLE, dest='sponsorblock_chapter_title',