[imdb:list] fix _VALID_URL regex
authorRemita Amine <remitamine@gmail.com>
Sat, 19 May 2018 10:04:08 +0000 (11:04 +0100)
committerRemita Amine <remitamine@gmail.com>
Sat, 19 May 2018 10:04:08 +0000 (11:04 +0100)
youtube_dl/extractor/imdb.py

index 926c2c3888f2d6c4c985d882fc811c2694965359..4bafa54a21e5abbc294a3686b6b974a9bb6d4eb3 100644 (file)
@@ -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': {