[turboimagehost] fix extraction

This commit is contained in:
Mike Fährmann 2018-10-23 21:01:51 +02:00
parent c69150f715
commit fd8ed35591
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
2 changed files with 2 additions and 3 deletions

View File

@ -225,6 +225,5 @@ class TurboimagehostImageExtractor(ImagehostImageExtractor):
params = None
def get_info(self, page):
needle = '://www.turboimagehost.com"><img src="'
url = text.extract(page, needle, '"')[0]
url = text.extract(page, 'src="', '"', page.index("<img "))[0]
return url, url

View File

@ -83,7 +83,7 @@ class MangaparkChapterExtractor(MangaparkExtractor, ChapterExtractor):
test = [
("https://mangapark.me/manga/gosu/s2/c55", {
"count": 50,
"keyword": "72ac1714b492b021a1fe26d9271ed132d51a930e",
"keyword": "5454f37e6ca4113c5639c9bdad5185ccdce4bb10",
}),
(("https://mangapark.me/manga/"
"ad-astra-per-aspera-hata-kenjirou/s5/c1.2"), {