]> jfr.im git - yt-dlp.git/commitdiff
[ie/youtube] Suppress "Unavailable videos are hidden" warning (#10159)
authorMarius Gedminas <redacted>
Sun, 30 Jun 2024 22:17:17 +0000 (01:17 +0300)
committerGitHub <redacted>
Sun, 30 Jun 2024 22:17:17 +0000 (22:17 +0000)
Authored by: mgedmin

yt_dlp/extractor/youtube.py

index 7aa84aa8b5db3e92ec20fd22b99cb16e63895306..094b1e9a3624404ee7c9f492e5db0f5b6a827907 100644 (file)
@@ -468,7 +468,10 @@ class YoutubeBaseInfoExtractor(InfoExtractor):
         'si', 'th', 'lo', 'my', 'ka', 'am', 'km', 'zh-CN', 'zh-TW', 'zh-HK', 'ja', 'ko',
     ]
 
-    _IGNORED_WARNINGS = {'Unavailable videos will be hidden during playback'}
+    _IGNORED_WARNINGS = {
+        'Unavailable videos will be hidden during playback',
+        'Unavailable videos are hidden',
+    }
 
     _YT_HANDLE_RE = r'@[\w.-]{3,30}'  # https://support.google.com/youtube/answer/11585688?hl=en
     _YT_CHANNEL_UCID_RE = r'UC[\w-]{22}'