diff --git a/gallery_dl/extractor/luscious.py b/gallery_dl/extractor/luscious.py index 78bc7fa4..af6e2e81 100644 --- a/gallery_dl/extractor/luscious.py +++ b/gallery_dl/extractor/luscious.py @@ -35,13 +35,14 @@ class LusciousAlbumExtractor(AsynchronousExtractor): ("https://www.luscious.net/albums/okinami_277031/", None), ("https://members.luscious.net/albums/okinami_277031/", None), ] + root = "https://luscious.net" def __init__(self, match): AsynchronousExtractor.__init__(self) self.gpart, self.gid = match.groups() def items(self): - url = "https://luscious.net/albums/" + self.gpart + "/" + url = "{}/albums/{}/".format(self.root, self.gpart) page = self.request(url).text data = self.get_metadata(page) yield Message.Version, 1 @@ -68,15 +69,22 @@ class LusciousAlbumExtractor(AsynchronousExtractor): data["artist"] = None return data - def get_images(self, page): + def get_images(self, page, extr=text.extract): """Collect image-urls and -metadata""" - extr = text.extract num = 1 pos = page.find('