Skip to content

Commit

Permalink
[luscious] fix extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed May 17, 2019
1 parent e82cada commit 7a14aae
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions gallery_dl/extractor/luscious.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,10 @@ def metadata(self, page):
def images(self, page):
extr = text.extract

if 'class="search_filter' in page:
url = "{}/pictures/album/x_{}/sorted/oldest/page/1/".format(
self.root, self.gallery_id)
page = self.request(url).text
pos = page.find('<div id="picture_page_')
else:
pos = page.find('<div class="album_cover_item">')

url = "{}/pictures/album/x_{}/sorted/old/page/1/".format(
self.root, self.gallery_id)
page = self.request(url).text
pos = page.find('<div id="picture_page_')
url = extr(page, '<a href="', '"', pos)[0]
iurl = None

Expand Down

0 comments on commit 7a14aae

Please sign in to comment.