mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-08 20:12:55 +08:00
Fix regex not accepting some IMDB links, falling back to generic without
reason
This commit is contained in:
parent
f377edec06
commit
c57d5d3931
@ -15,7 +15,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|list).+?[/-]vi(?P<id>\d+)'
|
||||
_VALID_URL = r'https?://(?:www|m)\.imdb\.com/(?:video|title|list).*?[/-]vi(?P<id>\d+)'
|
||||
|
||||
_TESTS = [{
|
||||
'url': 'http://www.imdb.com/video/imdb/vi2524815897',
|
||||
@ -43,6 +43,9 @@ class ImdbIE(InfoExtractor):
|
||||
}, {
|
||||
'url': 'https://www.imdb.com/list/ls009921623/videoplayer/vi260482329',
|
||||
'only_matching': True,
|
||||
}, {
|
||||
'url': 'https://www.imdb.com/video/vi3251092761?ref_=ttvi_vi_imdb_13',
|
||||
'only_matching': True,
|
||||
}]
|
||||
|
||||
def _real_extract(self, url):
|
||||
|
Loading…
Reference in New Issue
Block a user