diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2013-12-19 11:28:34 -0800 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2013-12-19 11:28:34 -0800 |
commit | 7c86a5b86434640e03c8a96658a6af133e1221b4 (patch) | |
tree | 85118337f81590a40bd964fd210e69a7e89df35c /youtube_dl/extractor | |
parent | 71507a11c899ceba571c0e2d0b2d8e632bcd0c08 (diff) | |
parent | 97e302a419d559a9837eeefb46ad05066540cc66 (diff) | |
download | youtube-dl-7c86a5b86434640e03c8a96658a6af133e1221b4.tar.xz |
Merge pull request #2011 from dstftw/master
[imdb] Add support for mobile site URLs
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/imdb.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/imdb.py b/youtube_dl/extractor/imdb.py index 6fb373db2..e5332cce8 100644 --- a/youtube_dl/extractor/imdb.py +++ b/youtube_dl/extractor/imdb.py @@ -11,7 +11,7 @@ from ..utils import ( class ImdbIE(InfoExtractor): IE_NAME = u'imdb' IE_DESC = u'Internet Movie Database trailers' - _VALID_URL = r'http://www\.imdb\.com/video/imdb/vi(?P<id>\d+)' + _VALID_URL = r'http://(?:www|m)\.imdb\.com/video/imdb/vi(?P<id>\d+)' _TEST = { u'url': u'http://www.imdb.com/video/imdb/vi2524815897', @@ -27,7 +27,7 @@ class ImdbIE(InfoExtractor): def _real_extract(self, url): mobj = re.match(self._VALID_URL, url) video_id = mobj.group('id') - webpage = self._download_webpage(url,video_id) + webpage = self._download_webpage('http://www.imdb.com/video/imdb/vi%s' % video_id, video_id) descr = get_element_by_attribute('itemprop', 'description', webpage) available_formats = re.findall( r'case \'(?P<f_id>.*?)\' :$\s+url = \'(?P<path>.*?)\'', webpage, |