diff --git a/youtube_dl/extractor/kankids.py b/youtube_dl/extractor/kankids.py index ca6d36fa8..1bcc1d025 100644 --- a/youtube_dl/extractor/kankids.py +++ b/youtube_dl/extractor/kankids.py @@ -7,6 +7,7 @@ import re CONTENT_DIR = r'/content/kids/' DOMAIN = r'kankids.org.il' + class KanKidsIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?' +\ DOMAIN.replace('.', '\.') + CONTENT_DIR +\ @@ -18,7 +19,7 @@ class KanKidsIE(InfoExtractor): '_type': 'playlist', 'id': 'p-11732', 'title': 'בית ספר לקוסמים', - }, + }, 'playlist_count': 60, }, { @@ -27,17 +28,17 @@ class KanKidsIE(InfoExtractor): '_type': 'playlist', 'id': 'cramel_main', 'title': 'כראמל - עונה 1', - }, + }, 'playlist_count': 21, }, - ] + ] def _real_extract(self, url): m = super()._match_valid_url(url) series_id = m.group('id') category = m.group('category') playlist_season = m.group('season') - + webpage = self._download_webpage(url, series_id) title_pattern = r'