mirror of
https://github.com/l1ving/youtube-dl
synced 2025-01-23 06:53:00 +08:00
[libsyn] fix extraction of the podcast title
The podcast title HTML element switched from a h3 to a div, the title moved to the next line and there is another tag embedded in the div.
This commit is contained in:
parent
b46b0ddbd6
commit
058e4d1989
@ -44,7 +44,8 @@ class LibsynIE(InfoExtractor):
|
||||
webpage = self._download_webpage(url, video_id)
|
||||
|
||||
podcast_title = self._search_regex(
|
||||
r'<h3>([^<]+)</h3>', webpage, 'podcast title', default=None)
|
||||
r'(?:<div class="[^"]*podcast-title[^"]*">|<h3>)([^<]+)<', webpage,
|
||||
'podcast title', default=None, flags=re.MULTILINE)
|
||||
if podcast_title:
|
||||
podcast_title = podcast_title.strip()
|
||||
episode_title = self._search_regex(
|
||||
|
Loading…
Reference in New Issue
Block a user