mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-08-31 00:02:25 +03:00
[ie] Do not warn on intentional generic results (#16683)
Authored by: FraFraFra-LongD
This commit is contained in:
@@ -1276,6 +1276,9 @@ class InfoExtractor:
|
||||
"""Returns a URL that points to a page that should be processed"""
|
||||
if ie is not None:
|
||||
kwargs['ie_key'] = ie if isinstance(ie, str) else ie.ie_key()
|
||||
# Silence fallback warning if this is an intentional generic result
|
||||
if kwargs.get('ie_key') == 'Generic':
|
||||
url = smuggle_url(url, {'to_generic': True})
|
||||
if video_id is not None:
|
||||
kwargs['id'] = video_id
|
||||
if video_title is not None:
|
||||
|
||||
Reference in New Issue
Block a user