From 25890f2ad102f9bfaaea7b725e4977c521908680 Mon Sep 17 00:00:00 2001 From: dirkf Date: Tue, 4 Nov 2025 21:45:12 +0000 Subject: [PATCH] [YouTube] Improve detection of geo-restriction Thx yt-dlp --- youtube_dl/extractor/youtube.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 4a61abcc5..9a1b87304 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -2787,7 +2787,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor): subreason = pemr.get('subreason') if subreason: subreason = clean_html(get_text(subreason)) - if subreason == 'The uploader has not made this video available in your country.': + if subreason.startswith('The uploader has not made this video available in your country'): countries = microformat.get('availableCountries') if not countries: regions_allowed = search_meta('regionsAllowed')