[space] Add support for mobile URLs
authordst <dstftw@gmail.com>
Wed, 22 Jan 2014 10:25:32 +0000 (17:25 +0700)
committerdst <dstftw@gmail.com>
Wed, 22 Jan 2014 10:25:32 +0000 (17:25 +0700)
youtube_dl/extractor/space.py

index 11455e0fa212f3ab6ec2b9cb258f2824346a2862..4a3e52ad8c02d0c7ccf653d761fbf95c63ed7bc8 100644 (file)
@@ -6,7 +6,7 @@ from ..utils import RegexNotFoundError, ExtractorError
 
 
 class SpaceIE(InfoExtractor):
-    _VALID_URL = r'https?://www\.space\.com/\d+-(?P<title>[^/\.\?]*?)-video\.html'
+    _VALID_URL = r'https?://(?:(?:www|m)\.)?space\.com/\d+-(?P<title>[^/\.\?]*?)-video\.html'
     _TEST = {
         u'add_ie': ['Brightcove'],
         u'url': u'http://www.space.com/23373-huge-martian-landforms-detail-revealed-by-european-probe-video.html',