From d1adf08119620f7b0f6e0f246c6fac5fc6ab220b Mon Sep 17 00:00:00 2001 From: Jesse Bannon Date: Thu, 21 Sep 2023 23:08:36 -0700 Subject: [PATCH] [BACKEND] Add `!is_live` match-filter by default to TV show presets (#735) Any YouTube channel with an active livestream would make ytdl-sub hang until it completed. This adds a match-filter to skip live videos by default for all prebuild TV show presets. More info on match-filters here: https://ytdl-sub.readthedocs.io/en/latest/config.html#match-filters --- src/ytdl_sub/prebuilt_presets/helpers/players.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ytdl_sub/prebuilt_presets/helpers/players.yaml b/src/ytdl_sub/prebuilt_presets/helpers/players.yaml index a0d62694..cdb56a97 100644 --- a/src/ytdl_sub/prebuilt_presets/helpers/players.yaml +++ b/src/ytdl_sub/prebuilt_presets/helpers/players.yaml @@ -1,6 +1,9 @@ presets: _base: + match_filters: + filters: + - "!is_live" overrides: file_uid: "{uid_sanitized}" file_title: "{title_sanitized}"