aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordirkf <fieldhouse@gmx.net>2025-11-04 21:45:12 +0000
committerdirkf <fieldhouse@gmx.net>2025-11-21 01:52:11 +0000
commit25890f2ad102f9bfaaea7b725e4977c521908680 (patch)
treeee8576032d430b79da8a908ee1790dc3af4d8727
parentd65882a0220b5c7dd25b16b90ed6d273aac264d9 (diff)
[YouTube] Improve detection of geo-restriction
Thx yt-dlp
-rw-r--r--youtube_dl/extractor/youtube.py2
1 files changed, 1 insertions, 1 deletions
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')