about summary refs log tree commit diff
path: root/youtube_dl/extractor/mtv.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-08-28 21:45:29 +0600
committerSergey M․ <dstftw@gmail.com>2015-08-28 21:45:29 +0600
commit054d43bb11590da234e7e8f46a595a34b19efb8c (patch)
tree17ff7047e42da5b51bb76d237d311aa2a3c38c48 /youtube_dl/extractor/mtv.py
parent65488b820c6792f6c9f5e729c417985d501c8eb1 (diff)
downloadyoutube-dl-054d43bb11590da234e7e8f46a595a34b19efb8c.tar.gz
youtube-dl-054d43bb11590da234e7e8f46a595a34b19efb8c.tar.xz
youtube-dl-054d43bb11590da234e7e8f46a595a34b19efb8c.zip
[mtvservices] Catch more georestriction errors
Diffstat (limited to 'youtube_dl/extractor/mtv.py')
-rw-r--r--youtube_dl/extractor/mtv.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/mtv.py b/youtube_dl/extractor/mtv.py
index d160f4a22..4e4358151 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')