1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-02-09 12:07:49 +08:00

[libsyn] fix extracting the episode title

The episode-title div had extra classes added to it,
so match the class name in any part of the class field.
This commit is contained in:
Paul Wise 2019-01-08 10:10:51 +08:00
parent 2543938bbe
commit bd3851b9dd
No known key found for this signature in database
GPG Key ID: 3116BA5E9FFA69A3

View File

@ -48,7 +48,7 @@ class LibsynIE(InfoExtractor):
if podcast_title:
podcast_title = podcast_title.strip()
episode_title = self._search_regex(
r'(?:<div class="episode-title">|<h4>)([^<]+)</', webpage, 'episode title')
r'(?:<div class="[^"]*episode-title[^"]*">|<h4>)([^<]+)</', webpage, 'episode title')
if episode_title:
episode_title = episode_title.strip()