[FEATURE] Set break_on_reject: True when using date_range plugin (#221)
This commit is contained in:
parent
819bddc9d0
commit
4b2e6e1169
1 changed files with 2 additions and 2 deletions
|
|
@ -52,7 +52,7 @@ class DateRangePlugin(Plugin[DateRangeOptions]):
|
|||
"""
|
||||
Returns
|
||||
-------
|
||||
YTDL options for extracting audio
|
||||
YTDL options for setting a date range
|
||||
"""
|
||||
ytdl_options_builder = YTDLOptionsBuilder()
|
||||
|
||||
|
|
@ -62,6 +62,6 @@ class DateRangePlugin(Plugin[DateRangeOptions]):
|
|||
overrides=self.overrides,
|
||||
)
|
||||
if source_date_range:
|
||||
ytdl_options_builder.add({"daterange": source_date_range})
|
||||
ytdl_options_builder.add({"daterange": source_date_range, "break_on_reject": True})
|
||||
|
||||
return ytdl_options_builder.to_dict()
|
||||
|
|
|
|||
Loading…
Reference in a new issue