[hosturimage] fix extraction of larger images

This commit is contained in:
Mike Fährmann
2017-10-25 12:56:16 +02:00
parent 27c026543f
commit 239d7afea7

View File

@@ -189,7 +189,8 @@ class HosturimageImageExtractor(ImagehostImageExtractor):
https = True
def get_info(self, page):
url, pos = text.extract(page, "<img class='centred' src='", "'")
pos = page.index("<img class='centred")
url = text.extract(page, " src='", "'", pos)[0]
return url, url