diff options
Diffstat (limited to 'gallery_dl/extractor/lightroom.py')
| -rw-r--r-- | gallery_dl/extractor/lightroom.py | 7 |
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"]: |
