summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/lightroom.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2023-03-13 02:07:49 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2023-03-13 02:07:49 -0400
commit10987f08f8b6c510ba64f4b42d95ba67eec6e5b0 (patch)
tree1af82cad9ac859a70cafc976a980280b939cfcc7 /gallery_dl/extractor/lightroom.py
parent919f8ba16a7b82ba1099bd25b2c61c7881a05aa2 (diff)
New upstream version 1.25.0.upstream/1.25.0
Diffstat (limited to 'gallery_dl/extractor/lightroom.py')
-rw-r--r--gallery_dl/extractor/lightroom.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/gallery_dl/extractor/lightroom.py b/gallery_dl/extractor/lightroom.py
index d202e20..783473d 100644
--- a/gallery_dl/extractor/lightroom.py
+++ b/gallery_dl/extractor/lightroom.py
@@ -7,8 +7,7 @@
"""Extractors for https://lightroom.adobe.com/"""
from .common import Extractor, Message
-from .. import text
-import json
+from .. import text, util
class LightroomGalleryExtractor(Extractor):
@@ -46,7 +45,7 @@ class LightroomGalleryExtractor(Extractor):
# Get config
url = "https://lightroom.adobe.com/shares/" + self.href
response = self.request(url)
- album = json.loads(
+ album = util.json_loads(
text.extr(response.text, "albumAttributes: ", "\n")
)
@@ -75,7 +74,7 @@ class LightroomGalleryExtractor(Extractor):
url = base_url + next_url
page = self.request(url).text
# skip 1st line as it's a JS loop
- data = json.loads(page[page.index("\n") + 1:])
+ data = util.json_loads(page[page.index("\n") + 1:])
base_url = data["base"]
for res in data["resources"]: