Skip to content

A feature-rich command-line audio/video downloader

[ie] Do not warn on intentional generic results (#16683)

FraFraFra-LongD9caaf4540149
diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py
index 180785f6a2..2a46302895 100644
--- a/yt_dlp/extractor/common.py
+++ b/yt_dlp/extractor/common.py
@@ -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: