commit 27694fe7ad77d5f99d7b46fa7395f4ccbb378777
parent 0167f0dbfe792355e793ea82791d61fc1d05f1f9
Author: Remita Amine <remitamine@gmail.com>
Date:   Sat, 19 May 2018 11:04:08 +0100

[imdb:list] fix _VALID_URL regex

Diffstat:
Myoutube_dl/extractor/imdb.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/youtube_dl/extractor/imdb.py b/youtube_dl/extractor/imdb.py @@ -92,7 +92,7 @@ class ImdbIE(InfoExtractor): class ImdbListIE(InfoExtractor): IE_NAME = 'imdb:list' IE_DESC = 'Internet Movie Database lists' - _VALID_URL = r'https?://(?:www\.)?imdb\.com/list/ls(?P<id>\d+)(?!/videoplayer/vi\d+)' + _VALID_URL = r'https?://(?:www\.)?imdb\.com/list/ls(?P<id>\d{9})(?!/videoplayer/vi\d+)' _TEST = { 'url': 'https://www.imdb.com/list/ls009921623/', 'info_dict': {