From 058e4d198924ed433f57f0318b1c7df1941a9194 Mon Sep 17 00:00:00 2001 From: Paul Wise Date: Tue, 8 Jan 2019 10:42:29 +0800 Subject: [PATCH] [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. --- youtube_dl/extractor/libsyn.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/libsyn.py b/youtube_dl/extractor/libsyn.py index 0ad168826..a8b58dd6b 100644 --- a/youtube_dl/extractor/libsyn.py +++ b/youtube_dl/extractor/libsyn.py @@ -44,7 +44,8 @@ class LibsynIE(InfoExtractor): webpage = self._download_webpage(url, video_id) podcast_title = self._search_regex( - r'

([^<]+)

', webpage, 'podcast title', default=None) + r'(?:
|

)([^<]+)<', webpage, + 'podcast title', default=None, flags=re.MULTILINE) if podcast_title: podcast_title = podcast_title.strip() episode_title = self._search_regex(