From 938163379dead120c05c75949899a29c31d8579c Mon Sep 17 00:00:00 2001 From: Thor77 Date: Sun, 16 Oct 2016 14:58:31 +0200 Subject: [PATCH] Use _html_search_meta instead of _html_search_regex --- youtube_dl/extractor/jamendo.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/youtube_dl/extractor/jamendo.py b/youtube_dl/extractor/jamendo.py index b562903bc..f7a3088fc 100644 --- a/youtube_dl/extractor/jamendo.py +++ b/youtube_dl/extractor/jamendo.py @@ -27,8 +27,9 @@ class JamendoIE(InfoExtractor): track_id = url_data.group('id') webpage = self._download_webpage(url, track_id) - thumbnail = self._html_search_regex(r'', webpage, 'thumbnail', fatal=False) - title = self._html_search_regex('', webpage, 'title') + thumbnail = self._html_search_meta( + 'image', webpage, 'thumbnail', fatal=False) + title = self._html_search_meta('name', webpage, 'title') return { 'id': track_id, @@ -79,7 +80,7 @@ class JamendoAlbumIE(InfoExtractor): album_id = url_data.group('id') webpage = self._download_webpage(url, album_id) - title = self._html_search_regex('', webpage, 'title') + title = self._html_search_meta('name', webpage, 'title') track_paths = re.findall(r'