[ie/youtube] Ignore new phrasing of a warning

This suppresses

    WARNING: [youtube:tab] YouTube said: INFO - Unavailable videos are hidden
This commit is contained in:
Marius Gedminas 2024-06-11 10:12:53 +03:00
parent db50f19d76
commit c853eab53f

View 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}'