aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2018-05-19 11:04:08 +0100
committerRemita Amine <remitamine@gmail.com>2018-05-19 11:04:08 +0100
commit27694fe7ad77d5f99d7b46fa7395f4ccbb378777 (patch)
tree24d0dd929014af58126600848bf702adf751332b
parent0167f0dbfe792355e793ea82791d61fc1d05f1f9 (diff)
[imdb:list] fix _VALID_URL regex
-rw-r--r--youtube_dl/extractor/imdb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/imdb.py b/youtube_dl/extractor/imdb.py
index 926c2c388..4bafa54a2 100644
--- 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': {