diff --git a/gallery_dl/extractor/luscious.py b/gallery_dl/extractor/luscious.py index a73eb86b..965daa01 100644 --- a/gallery_dl/extractor/luscious.py +++ b/gallery_dl/extractor/luscious.py @@ -74,7 +74,7 @@ class LusciousAlbumExtractor(LusciousBase, GalleryExtractor): }), ("https://members.luscious.net/albums/login-required_323871/", { "options": (("username", None),), - "exception": exception.AuthorizationError, + "exception": exception.HttpError, }), ("https://www.luscious.net/albums/okinami_277031/"), ("https://members.luscious.net/albums/okinami_277031/"), @@ -88,14 +88,14 @@ class LusciousAlbumExtractor(LusciousBase, GalleryExtractor): GalleryExtractor.__init__(self, match, url) def metadata(self, page): - pos = page.find("

404 Not Found

") - if pos >= 0: + title, pos = text.extract(page, '"og:title" content="', '"') + + if title is None: msg = text.extract(page, '
', '
', pos)[0] - if msg and "content is not available" in msg: - raise exception.AuthorizationError() + if msg: + raise exception.AuthorizationError(msg) raise exception.NotFoundError("album") - title, pos = text.extract(page, '"og:title" content="', '"') info , pos = text.extract(page, '
  • ', "", pos) if info is None: count, pos = text.extract(page, '>Pages:', '<', pos)