lint
This commit is contained in:
parent
6ba9d55186
commit
37226f6685
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue