diff options
author | Sergey M․ <dstftw@gmail.com> | 2017-05-14 00:32:50 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2017-05-14 00:32:50 +0700 |
commit | b845766597ea360ea474fac6764694ab34e8ef60 (patch) | |
tree | 37a24ab9a012a385feab5161b3505da1db98840f /youtube_dl | |
parent | fa26734e0760549b7b727017106e9d649bb695ff (diff) |
[imdb] Relax _VALID_URL (closes #13056)
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 f95c00c73..3ff672a89 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-|videoplayer/)vi(?P<id>\d+)' + _VALID_URL = r'https?://(?:www|m)\.imdb\.com/(?:video|title).+?[/-]vi(?P<id>\d+)' _TESTS = [{ 'url': 'http://www.imdb.com/video/imdb/vi2524815897', @@ -35,6 +35,9 @@ class ImdbIE(InfoExtractor): }, { 'url': 'http://www.imdb.com/videoplayer/vi1562949145', 'only_matching': True, + }, { + 'url': 'http://www.imdb.com/title/tt4218696/videoplayer/vi2608641561', + 'only_matching': True, }] def _real_extract(self, url): |