[FEATURE] Set break_on_reject: True when using date_range plugin

This commit is contained in:
Jesse Bannon 2022-09-07 15:15:08 -07:00
parent 819bddc9d0
commit 329c72c69a

View file

@ -52,7 +52,7 @@ class DateRangePlugin(Plugin[DateRangeOptions]):
""" """
Returns Returns
------- -------
YTDL options for extracting audio YTDL options for setting a date range
""" """
ytdl_options_builder = YTDLOptionsBuilder() ytdl_options_builder = YTDLOptionsBuilder()
@ -62,6 +62,6 @@ class DateRangePlugin(Plugin[DateRangeOptions]):
overrides=self.overrides, overrides=self.overrides,
) )
if source_date_range: 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() return ytdl_options_builder.to_dict()