aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGilles Pietri <gilles@wolface.fr>2020-09-27 14:51:42 +0200
committerGilles Pietri <gilles@wolface.fr>2020-09-27 14:51:42 +0200
commitf43a856334b633e3d2f778b455fb08a4a06fbf51 (patch)
tree4a3dee75cb530601f4fa8b5679edf69a1ae96edd
parent14194392a813a12b3a1477ec75bcd0c8626ef3bb (diff)
downloadhypervideo-pre-f43a856334b633e3d2f778b455fb08a4a06fbf51.tar.lz
hypervideo-pre-f43a856334b633e3d2f778b455fb08a4a06fbf51.tar.xz
hypervideo-pre-f43a856334b633e3d2f778b455fb08a4a06fbf51.zip
[bandcamp] match album titles inside the new JSON data block, and unescape the title properly
-rw-r--r--youtube_dl/extractor/bandcamp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/bandcamp.py b/youtube_dl/extractor/bandcamp.py
index 55d110e28..f036a89eb 100644
--- a/youtube_dl/extractor/bandcamp.py
+++ b/youtube_dl/extractor/bandcamp.py
@@ -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*(?:&quot;|["\']):\s*(?:&quot;|["\'])((?:\\.|[^"\\])+?)(?:&quot;|["\'])',
webpage, 'title', fatal=False)
if title:
- title = title.replace(r'\"', '"')
+ title = unescapeHTML(title)
return {
'_type': 'playlist',
'uploader_id': uploader_id,