1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-10 15:27:17 +08:00

Merge pull request #265 from ytdl-org/master

[pull] master from ytdl-org:master
This commit is contained in:
pull[bot] 2020-02-22 19:04:53 +00:00 committed by GitHub
commit f1aaf6681c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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):