mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-28 13:11:49 +00:00
Fixed flake8 errors.
This commit is contained in:
parent
d3e980eaa5
commit
a4737bb755
1 changed files with 9 additions and 8 deletions
|
@ -7,6 +7,7 @@ import re
|
||||||
CONTENT_DIR = r'/content/kids/'
|
CONTENT_DIR = r'/content/kids/'
|
||||||
DOMAIN = r'kankids.org.il'
|
DOMAIN = r'kankids.org.il'
|
||||||
|
|
||||||
|
|
||||||
class KanKidsIE(InfoExtractor):
|
class KanKidsIE(InfoExtractor):
|
||||||
_VALID_URL = r'https?://(?:www\.)?' +\
|
_VALID_URL = r'https?://(?:www\.)?' +\
|
||||||
DOMAIN.replace('.', '\.') + CONTENT_DIR +\
|
DOMAIN.replace('.', '\.') + CONTENT_DIR +\
|
||||||
|
@ -18,7 +19,7 @@ class KanKidsIE(InfoExtractor):
|
||||||
'_type': 'playlist',
|
'_type': 'playlist',
|
||||||
'id': 'p-11732',
|
'id': 'p-11732',
|
||||||
'title': 'בית ספר לקוסמים',
|
'title': 'בית ספר לקוסמים',
|
||||||
},
|
},
|
||||||
'playlist_count': 60,
|
'playlist_count': 60,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -27,10 +28,10 @@ class KanKidsIE(InfoExtractor):
|
||||||
'_type': 'playlist',
|
'_type': 'playlist',
|
||||||
'id': 'cramel_main',
|
'id': 'cramel_main',
|
||||||
'title': 'כראמל - עונה 1',
|
'title': 'כראמל - עונה 1',
|
||||||
},
|
},
|
||||||
'playlist_count': 21,
|
'playlist_count': 21,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
m = super()._match_valid_url(url)
|
m = super()._match_valid_url(url)
|
||||||
|
@ -54,8 +55,8 @@ class KanKidsIE(InfoExtractor):
|
||||||
series_id + r'/' + # Series
|
series_id + r'/' + # Series
|
||||||
season + r'/' + # Season
|
season + r'/' + # Season
|
||||||
r'(?P<id>[0-9]+)/"' + # Episode
|
r'(?P<id>[0-9]+)/"' + # Episode
|
||||||
r'.+title="(?P<title>.+)"' # Title
|
r'.+title="(?P<title>.+)"', # Title
|
||||||
, webpage))
|
webpage))
|
||||||
|
|
||||||
entries = []
|
entries = []
|
||||||
content_dir = r'https://www.' + DOMAIN + content_dir
|
content_dir = r'https://www.' + DOMAIN + content_dir
|
||||||
|
@ -65,12 +66,12 @@ class KanKidsIE(InfoExtractor):
|
||||||
ie='Generic',
|
ie='Generic',
|
||||||
video_id=video_id,
|
video_id=video_id,
|
||||||
video_title=title,
|
video_title=title,
|
||||||
))
|
))
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'_type': 'playlist',
|
'_type': 'playlist',
|
||||||
'id': series_id,
|
'id': series_id,
|
||||||
'title': series_title,
|
'title': series_title,
|
||||||
'entries': entries,
|
'entries': entries,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue