fixed the module for pixhost

This commit is contained in:
Chen John L
2017-04-21 19:54:10 +08:00
parent 9f32cf1f4e
commit a5485a46cb

4
gallery_dl/extractor/imagehosts.py Normal file → Executable file
View File

@@ -312,8 +312,8 @@ class PixhostImageExtractor(ImagehostImageExtractor):
cookies = {"pixhostads": "1", "pixhosttest": "1"}
def get_info(self, page):
url , pos = text.extract(page, "src: '", "'")
filename, pos = text.extract(page, "title: '", "'", pos)
url , pos = text.extract(page, "class=\"image-img\" src=\"", "\"")
filename, pos = text.extract(page, "alt=\"", "\"", pos)
return url, filename