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:
parent
2543938bbe
commit
bd3851b9dd
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user