mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-13 06:12:51 +08:00
[bandcamp] match album titles inside the new JSON data block, and unescape the title properly
This commit is contained in:
parent
c0acb12083
commit
d5a55b1725
@ -316,10 +316,10 @@ class BandcampAlbumIE(InfoExtractor):
|
||||
if self._html_search_meta('duration', elem_content, default=None)]
|
||||
|
||||
title = self._html_search_regex(
|
||||
r'album_title\s*:\s*"((?:\\.|[^"\\])+?)"',
|
||||
r'album_title\s*(?:"|["\']):\s*(?:"|["\'])((?:\\.|[^"\\])+?)(?:"|["\'])',
|
||||
webpage, 'title', fatal=False)
|
||||
if title:
|
||||
title = title.replace(r'\"', '"')
|
||||
title = unescapeHTML(title)
|
||||
return {
|
||||
'_type': 'playlist',
|
||||
'uploader_id': uploader_id,
|
||||
|
Loading…
Reference in New Issue
Block a user