Merge pull request #13 from john0312/master

Fixed the module for pixhost
This commit is contained in:
Mike Fährmann
2017-04-21 15:11:50 +02:00
committed by GitHub

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