projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9842d29
)
[crunchyroll:playlist] Fix and relax title extraction (closes #21291, closes #21443)
author
Sergey M․
<dstftw@gmail.com>
Fri, 21 Jun 2019 17:07:26 +0000
(
00:07
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 21 Jun 2019 17:07:26 +0000
(
00:07
+0700)
youtube_dl/extractor/crunchyroll.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/crunchyroll.py
b/youtube_dl/extractor/crunchyroll.py
index 588c3c71b776ccb9ad52d721d389f1fd3833abab..75b56ee4202276ff1d7acaf18caada1c69c97ec7 100644
(file)
--- a/
youtube_dl/extractor/crunchyroll.py
+++ b/
youtube_dl/extractor/crunchyroll.py
@@
-661,9
+661,8
@@
class CrunchyrollShowPlaylistIE(CrunchyrollBaseIE):
webpage = self._download_webpage(
self._add_skip_wall(url), show_id,
headers=self.geo_verification_headers())
- title = self._html_search_regex(
- r'(?s)<h1[^>]*>\s*<span itemprop="name">(.*?)</span>',
- webpage, 'title')
+ title = self._html_search_meta('name', webpage, default=None)
+
episode_paths = re.findall(
r'(?s)<li id="showview_videos_media_(\d+)"[^>]+>.*?<a href="([^"]+)"',
webpage)