diff options
author | Sergey M․ <dstftw@gmail.com> | 2017-01-17 23:14:07 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2017-01-17 23:14:07 +0700 |
commit | 136078966b2047b21e9784060cebdc893c643ee9 (patch) | |
tree | 724ea449558a9d1751a1ecba371ee08f66d63c8e /youtube_dl | |
parent | 8a5f0a6357746d293f7330e40a3cf5823b1b626d (diff) |
[imdb] Extend _VALID_URL (closes #11744)
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/imdb.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/imdb.py b/youtube_dl/extractor/imdb.py index f0fc8d49a..f95c00c73 100644 --- a/youtube_dl/extractor/imdb.py +++ b/youtube_dl/extractor/imdb.py @@ -13,7 +13,7 @@ from ..utils import ( class ImdbIE(InfoExtractor): IE_NAME = 'imdb' IE_DESC = 'Internet Movie Database trailers' - _VALID_URL = r'https?://(?:www|m)\.imdb\.com/(?:video/[^/]+/|title/tt\d+.*?#lb-)vi(?P<id>\d+)' + _VALID_URL = r'https?://(?:www|m)\.imdb\.com/(?:video/[^/]+/|title/tt\d+.*?#lb-|videoplayer/)vi(?P<id>\d+)' _TESTS = [{ 'url': 'http://www.imdb.com/video/imdb/vi2524815897', @@ -32,6 +32,9 @@ class ImdbIE(InfoExtractor): }, { 'url': 'http://www.imdb.com/title/tt1667889/#lb-vi2524815897', 'only_matching': True, + }, { + 'url': 'http://www.imdb.com/videoplayer/vi1562949145', + 'only_matching': True, }] def _real_extract(self, url): |