summary refs log tree commit diff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-06-15 22:34:55 +0700
committerSergey M․ <dstftw@gmail.com>2016-06-15 22:34:55 +0700
commit4c93ee8d14dc081d413304d2d2eb694cb62cc71a (patch)
treee92ccb6862d60204e2855af48be4a9a8ac12522a
parent8bc4dbb1af1573f26685b0e609af319dcf34a48e (diff)
downloadyoutube-dl-4c93ee8d14dc081d413304d2d2eb694cb62cc71a.tar.gz
youtube-dl-4c93ee8d14dc081d413304d2d2eb694cb62cc71a.tar.xz
youtube-dl-4c93ee8d14dc081d413304d2d2eb694cb62cc71a.zip
[imdb] Improve _VALID_URL (Closes #9788)
-rw-r--r--youtube_dl/extractor/imdb.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/youtube_dl/extractor/imdb.py b/youtube_dl/extractor/imdb.py
index 3a2b7cec5..0acce9f4c 100644
--- a/youtube_dl/extractor/imdb.py
+++ b/youtube_dl/extractor/imdb.py
@@ -12,7 +12,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/[^/]+/vi(?P<id>\d+)'
+    _VALID_URL = r'https?://(?:www|m)\.imdb\.com/(?:video/[^/]+/|title/tt\d+.*?#lb-)vi(?P<id>\d+)'
 
     _TESTS = [{
         'url': 'http://www.imdb.com/video/imdb/vi2524815897',
@@ -25,6 +25,12 @@ class ImdbIE(InfoExtractor):
     }, {
         'url': 'http://www.imdb.com/video/_/vi2524815897',
         'only_matching': True,
+    }, {
+        'url': 'http://www.imdb.com/title/tt1667889/?ref_=ext_shr_eml_vi#lb-vi2524815897',
+        'only_matching': True,
+    }, {
+        'url': 'http://www.imdb.com/title/tt1667889/#lb-vi2524815897',
+        'only_matching': True,
     }]
 
     def _real_extract(self, url):