From 37226f66853b4913848e77876b88600edd95d270 Mon Sep 17 00:00:00 2001 From: Jesse Bannon Date: Wed, 17 May 2023 23:20:48 -0700 Subject: [PATCH] lint --- src/ytdl_sub/plugins/match_filters.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ytdl_sub/plugins/match_filters.py b/src/ytdl_sub/plugins/match_filters.py index 26feff05..27e9dce6 100644 --- a/src/ytdl_sub/plugins/match_filters.py +++ b/src/ytdl_sub/plugins/match_filters.py @@ -84,6 +84,10 @@ class MatchFiltersPlugin(Plugin[MatchFiltersOptions]): } def modify_entry(self, entry: Entry) -> Optional[Entry]: + """ + If an entry is marked as not being downloaded due to a match_filter reject, + do not propagate the entry further (especially since there is no entry file!) + """ if entry.kwargs_get(YTDL_SUB_MATCH_FILTER_REJECT, False): logger.info("Entry rejected by match-filter, skipping ..") return None