fapello.py Fullsize image
by remove ".md" and ".th" in image url, it will download fullsize of images
This commit is contained in:
@@ -42,7 +42,8 @@ class FapelloPostExtractor(Extractor):
|
|||||||
"type" : "video" if 'type="video' in page else "photo",
|
"type" : "video" if 'type="video' in page else "photo",
|
||||||
"thumbnail": text.extr(page, 'poster="', '"'),
|
"thumbnail": text.extr(page, 'poster="', '"'),
|
||||||
}
|
}
|
||||||
url = text.extr(page, 'src="', '"').replace(".md", "")
|
url = text.extr(page, 'src="', '"').replace(
|
||||||
|
".md", "").replace(".th", "")
|
||||||
yield Message.Directory, data
|
yield Message.Directory, data
|
||||||
yield Message.Url, url, text.nameext_from_url(url, data)
|
yield Message.Url, url, text.nameext_from_url(url, data)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user