mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-01-06 06:06:34 +00:00
Fixed a series title location bug.
This commit is contained in:
parent
3fb423c0bf
commit
c9265f6d60
@ -35,7 +35,12 @@ class KanKidsIE(InfoExtractor):
|
|||||||
|
|
||||||
webpage = self._download_webpage(url, series_id)
|
webpage = self._download_webpage(url, series_id)
|
||||||
|
|
||||||
series_title = self._html_search_regex(r'<title>(?P<title>.+) \|', webpage, 'title')
|
title_pattern = r'<title>(?P<title>.+) \|'
|
||||||
|
series_title = re.search(title_pattern, webpage)
|
||||||
|
if not series_title:
|
||||||
|
series_title = re.search(title_pattern[:-1] + r'-', webpage)
|
||||||
|
if series_title:
|
||||||
|
series_title = series_title.group('title')
|
||||||
|
|
||||||
season = playlist_season if playlist_season else r'(?P<season>\w+)'
|
season = playlist_season if playlist_season else r'(?P<season>\w+)'
|
||||||
content_dir = CONTENT_DIR + category + r'-main/'
|
content_dir = CONTENT_DIR + category + r'-main/'
|
||||||
@ -47,7 +52,6 @@ class KanKidsIE(InfoExtractor):
|
|||||||
r'.+title="(?P<title>.+)"' # Title
|
r'.+title="(?P<title>.+)"' # Title
|
||||||
, webpage))
|
, webpage))
|
||||||
# , 'Episode list')
|
# , 'Episode list')
|
||||||
print('playlist:', playlist)
|
|
||||||
|
|
||||||
entries = []
|
entries = []
|
||||||
content_dir = r'https://www.' + DOMAIN + content_dir
|
content_dir = r'https://www.' + DOMAIN + content_dir
|
||||||
|
Loading…
Reference in New Issue
Block a user