Fixing formatting of a line that is too long

This commit is contained in:
Bishop Red
2025-03-27 21:44:36 -06:00
parent a854d6060e
commit af23894911

View File

@@ -1280,7 +1280,8 @@ class DeviantartDeviationExtractor(DeviantartExtractor):
_dev_info = text.extr(
page, '\\"deviationExtended\\":', ',\\"deviation\\":', None)
# Clean up escaped quotes
_json_str = re.sub(r'(?<!\\)\\{1}"', '"', _dev_info).replace("\\'", "'")
_json_str = re.sub(
r'(?<!\\)\\{1}"', '"', _dev_info).replace("\\'", "'")
_extended_info = json.loads(_json_str)[self.deviation_id]
additional_media = _extended_info.get('additionalMedia', [])