A feature-rich command-line audio/video downloader
[mtvservices] Catch more georestriction errors
Sergey M․054d43bb1159
diff --git a/youtube_dl/extractor/mtv.py b/youtube_dl/extractor/mtv.pyindex d160f4a220..4e4358151e 100644--- a/youtube_dl/extractor/mtv.py+++ b/youtube_dl/extractor/mtv.py@@ -67,7 +67,7 @@ class MTVServicesInfoExtractor(InfoExtractor):return [{'url': url, 'ext': 'mp4'}]def _extract_video_formats(self, mdoc, mtvn_id):- if re.match(r'.*/(error_country_block\.swf|geoblock\.mp4)$', mdoc.find('.//src').text) is not None:+ if re.match(r'.*/(error_country_block\.swf|geoblock\.mp4|copyright_error\.flv(?:\?geo\b.+?)?)$', mdoc.find('.//src').text) is not None:if mtvn_id is not None and self._MOBILE_TEMPLATE is not None:self.to_screen('The normal version is not available from your ''country, trying with the mobile version')