[bandcamp] match album titles inside the new JSON data block, and unescape the title properly

pull/2/head
Gilles Pietri 4 years ago
parent 14194392a8
commit f43a856334

@ -316,10 +316,10 @@ class BandcampAlbumIE(InfoExtractor):
if self._html_search_meta('duration', elem_content, default=None)] if self._html_search_meta('duration', elem_content, default=None)]
title = self._html_search_regex( title = self._html_search_regex(
r'album_title\s*:\s*"((?:\\.|[^"\\])+?)"', r'album_title\s*(?:"|["\']):\s*(?:"|["\'])((?:\\.|[^"\\])+?)(?:"|["\'])',
webpage, 'title', fatal=False) webpage, 'title', fatal=False)
if title: if title:
title = title.replace(r'\"', '"') title = unescapeHTML(title)
return { return {
'_type': 'playlist', '_type': 'playlist',
'uploader_id': uploader_id, 'uploader_id': uploader_id,

Loading…
Cancel
Save