mirror of
https://github.com/LucBerge/yt-dlp.git
synced 2025-03-17 19:57:52 +03:00
Reject entire playlists faster with --match-filter
Rejected based on `playlist_id` etc can be checked before any entries are extracted Related: #4383
This commit is contained in:
parent
7d0f6f0c45
commit
3bec830a59
3 changed files with 39 additions and 32 deletions
|
@ -3666,7 +3666,7 @@ def match_filter_func(filters):
|
|||
if not filters or any(match_str(f, info_dict, incomplete) for f in filters):
|
||||
return NO_DEFAULT if interactive and not incomplete else None
|
||||
else:
|
||||
video_title = info_dict.get('title') or info_dict.get('id') or 'video'
|
||||
video_title = info_dict.get('title') or info_dict.get('id') or 'entry'
|
||||
filter_str = ') | ('.join(map(str.strip, filters))
|
||||
return f'{video_title} does not pass filter ({filter_str}), skipping ..'
|
||||
return _match_func
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue