diff --git a/src/ytdl_sub/plugins/date_range.py b/src/ytdl_sub/plugins/date_range.py index 7366504d..d86f5c2d 100644 --- a/src/ytdl_sub/plugins/date_range.py +++ b/src/ytdl_sub/plugins/date_range.py @@ -62,6 +62,11 @@ class DateRangePlugin(Plugin[DateRangeOptions]): overrides=self.overrides, ) if source_date_range: - ytdl_options_builder.add({"daterange": source_date_range, "break_on_reject": True}) + ytdl_options_builder.add({"daterange": source_date_range}) + + # Only add break_on_reject if after is specified, but not before. + # Otherwise, it can break on first metadata pull if it's after the 'before' + if self.plugin_options.after and not self.plugin_options.before: + ytdl_options_builder.add({"break_on_reject": True}) return ytdl_options_builder.to_dict() diff --git a/src/ytdl_sub/prebuilt_presets/tv_show/episode.yaml b/src/ytdl_sub/prebuilt_presets/tv_show/episode.yaml index cf1a357c..1a40210c 100644 --- a/src/ytdl_sub/prebuilt_presets/tv_show/episode.yaml +++ b/src/ytdl_sub/prebuilt_presets/tv_show/episode.yaml @@ -9,6 +9,9 @@ presets: thumbnail_name: "{episode_file_path}-thumb.jpg" maintain_download_archive: True + ytdl_options: + break_on_existing: True + chapters: embed_chapters: True