Browse Source

Merge pull request #2195 from dstftw/master

[space] Add support for mobile URLs
Jaime Marquínez Ferrándiz 11 years ago
parent
commit
4ca5d43cd8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      youtube_dl/extractor/space.py

+ 1 - 1
youtube_dl/extractor/space.py

@@ -6,7 +6,7 @@ from ..utils import RegexNotFoundError, ExtractorError
 
 
 
 
 class SpaceIE(InfoExtractor):
 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 = {
     _TEST = {
         u'add_ie': ['Brightcove'],
         u'add_ie': ['Brightcove'],
         u'url': u'http://www.space.com/23373-huge-martian-landforms-detail-revealed-by-european-probe-video.html',
         u'url': u'http://www.space.com/23373-huge-martian-landforms-detail-revealed-by-european-probe-video.html',