From efdc2995473959fd2ecdd9c2b06cc4e46aa69764 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Thu, 29 Dec 2016 17:38:22 +0100 Subject: [PATCH] [hentaifoundry] get artist name from webpage --- gallery_dl/extractor/hentaifoundry.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gallery_dl/extractor/hentaifoundry.py b/gallery_dl/extractor/hentaifoundry.py index b6719108..6bb0e947 100644 --- a/gallery_dl/extractor/hentaifoundry.py +++ b/gallery_dl/extractor/hentaifoundry.py @@ -137,10 +137,11 @@ class HentaifoundryImageExtractor(Extractor): if response.status_code == 404: raise exception.NotFoundError("image") page = response.text - title, pos = text.extract(page, 'Pictures » ', '<') - url , pos = text.extract(page, '//pictures.hentai-foundry.com', '"', pos) + artist, pos = text.extract(page, ' » ', '<', pos) + url , pos = text.extract(page, '//pictures.hentai-foundry.com', '"', pos) data = { - "artist": self.artist, + "artist": artist, "index": self.index, "title": text.unescape(title), }