mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-07 20:30:41 -05:00
[bandcamp] match album titles inside the new JSON data block, and unescape the title properly
This commit is contained in:
parent
14194392a8
commit
f43a856334
1 changed files with 2 additions and 2 deletions
|
@ -316,10 +316,10 @@ def _real_extract(self, url):
|
|||
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 a new issue