[fappic] fix extraction

pull/3003/head
Mike Fährmann 2 years ago
parent 78694a61bb
commit 7b5dad075d
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Copyright 2016-2021 Mike Fährmann # Copyright 2016-2022 Mike Fährmann
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as # it under the terms of the GNU General Public License version 2 as
@ -292,7 +292,7 @@ class FappicImageExtractor(ImagehostImageExtractor):
}) })
def get_info(self, page): def get_info(self, page):
url , pos = text.extract(page, '<a href="/?click"><img src="', '"') url , pos = text.extract(page, '<a href="#"><img src="', '"')
filename, pos = text.extract(page, 'alt="', '"', pos) filename, pos = text.extract(page, 'alt="', '"', pos)
if filename.startswith("Porn-Picture-"): if filename.startswith("Porn-Picture-"):

Loading…
Cancel
Save