Fixing formatting of a line that is too long
This commit is contained in:
@@ -1280,7 +1280,8 @@ class DeviantartDeviationExtractor(DeviantartExtractor):
|
|||||||
_dev_info = text.extr(
|
_dev_info = text.extr(
|
||||||
page, '\\"deviationExtended\\":', ',\\"deviation\\":', None)
|
page, '\\"deviationExtended\\":', ',\\"deviation\\":', None)
|
||||||
# Clean up escaped quotes
|
# 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]
|
_extended_info = json.loads(_json_str)[self.deviation_id]
|
||||||
additional_media = _extended_info.get('additionalMedia', [])
|
additional_media = _extended_info.get('additionalMedia', [])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user