[deviantart] unescape \' in JSON data (#6653)

https://github.com/mikf/gallery-dl/issues/6653#issuecomment-2833783238
This commit is contained in:
Mike Fährmann
2025-04-28 09:42:16 +02:00
parent 9b43a3677e
commit 0725eab34f
2 changed files with 16 additions and 1 deletions

View File

@@ -868,7 +868,9 @@ x2="45.4107524%" y2="71.4898596%" id="app-root-3">\
yield self.api.deviation(deviation_uuid)
def _unescape_json(self, json):
return json.replace('\\"', '"').replace("\\\\", "\\")
return json.replace('\\"', '"') \
.replace("\\'", "'") \
.replace("\\\\", "\\")
class DeviantartUserExtractor(DeviantartExtractor):