From 0b3cb7df0d567c2dbe9e30f3a30c3020fc8962fc Mon Sep 17 00:00:00 2001 From: Lucas Date: Sun, 18 Aug 2019 23:35:39 +0200 Subject: [PATCH] Support language specific sites --- youtube_dl/extractor/deezer.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/youtube_dl/extractor/deezer.py b/youtube_dl/extractor/deezer.py index 3a7e7d5b0..0aff4074e 100644 --- a/youtube_dl/extractor/deezer.py +++ b/youtube_dl/extractor/deezer.py @@ -10,16 +10,15 @@ from ..utils import ( orderedSet, ) - class DeezerPlaylistIE(InfoExtractor): - _VALID_URL = r'https?://(?:www\.)?deezer\.com/playlist/(?P[0-9]+)' + _VALID_URL = r'https?://(?:www\.)?deezer\.com/(../)?playlist/(?P[0-9]+)' _TEST = { 'url': 'http://www.deezer.com/playlist/176747451', 'info_dict': { 'id': '176747451', 'title': 'Best!', 'uploader': 'anonymous', - 'thumbnail': r're:^https?://e-cdns-images\.dzcdn\.net/images/cover/.*\.jpg$', + 'thumbnail': r're:^https?://(e-)?cdns-images\.dzcdn\.net/images/cover/.*\.jpg$', }, 'playlist_count': 29, }