A feature-rich command-line audio/video downloader
[ie/youtube] Fix geo-restriction error handling (#13217)
Yasin Özelc7e575e31608
diff --git a/yt_dlp/extractor/youtube/_video.py b/yt_dlp/extractor/youtube/_video.pyindex 28fff19695..b4c6ba4538 100644--- a/yt_dlp/extractor/youtube/_video.py+++ b/yt_dlp/extractor/youtube/_video.py@@ -3755,7 +3755,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):reason = self._get_text(pemr, 'reason') or get_first(playability_statuses, 'reason')subreason = clean_html(self._get_text(pemr, 'subreason') or '')if 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 = get_first(microformats, 'availableCountries')if not countries:regions_allowed = search_meta('regionsAllowed')