mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-07 19:52:40 +01:00
[mtvservices] Catch more georestriction errors
This commit is contained in:
parent
65488b820c
commit
054d43bb11
@ -67,7 +67,7 @@ def _extract_mobile_video_formats(self, mtvn_id):
|
|||||||
return [{'url': url, 'ext': 'mp4'}]
|
return [{'url': url, 'ext': 'mp4'}]
|
||||||
|
|
||||||
def _extract_video_formats(self, mdoc, mtvn_id):
|
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:
|
if mtvn_id is not None and self._MOBILE_TEMPLATE is not None:
|
||||||
self.to_screen('The normal version is not available from your '
|
self.to_screen('The normal version is not available from your '
|
||||||
'country, trying with the mobile version')
|
'country, trying with the mobile version')
|
||||||
|
Loading…
Reference in New Issue
Block a user