diff options
| author | 2019-10-01 19:12:47 -0400 | |
|---|---|---|
| committer | 2019-10-01 19:12:47 -0400 | |
| commit | 639d9ea4a667733aadc3ff83a1df2cc9f0add3a9 (patch) | |
| tree | 5761b58d6fc3e8bbb99b39b8e4417673bccb0b86 /gallery_dl/extractor/luscious.py | |
| parent | c09a9f00dd83017d486cd77650347bc2a397ad55 (diff) | |
New upstream version 1.10.5upstream/1.10.5
Diffstat (limited to 'gallery_dl/extractor/luscious.py')
| -rw-r--r-- | gallery_dl/extractor/luscious.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gallery_dl/extractor/luscious.py b/gallery_dl/extractor/luscious.py index a73eb86..965daa0 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("<h1>404 Not Found</h1>") - if pos >= 0: + title, pos = text.extract(page, '"og:title" content="', '"') + + if title is None: msg = text.extract(page, '<div class="content">', '</div>', 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, '<li class="user_info">', "", pos) if info is None: count, pos = text.extract(page, '>Pages:', '<', pos) |
