1
0
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:
Paul Wise 2019-01-08 10:42:29 +08:00
parent b46b0ddbd6
commit 058e4d1989
No known key found for this signature in database
GPG Key ID: 3116BA5E9FFA69A3

View File

@ -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(