[furaffinity] remove end of system messages

pull/5071/head
Mike Fährmann 1 month ago
parent 846512f6cd
commit c07a074418
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -78,14 +78,12 @@ class FuraffinityExtractor(Extractor):
path = extr('href="//d', '"')
if not path:
self.log.warning(
"Unable to download post %s (\"%s\")",
post_id, text.remove_html(
msg = text.remove_html(
extr('System Message', '</section>') or
extr('System Message', '</table>')
)
)
return None
).partition(" . Continue ")[0]
return self.log.warning(
"Unable to download post %s (\"%s\")", post_id, msg)
pi = text.parse_int
rh = text.remove_html

@ -159,6 +159,14 @@ __tests__ = (
"width" : 488,
},
{
"#url" : "https://www.furaffinity.net/view/57587562",
"#comment" : "login required",
"#category": ("", "furaffinity", "post"),
"#class" : furaffinity.FuraffinityPostExtractor,
"#count" : 0,
},
{
"#url" : "https://furaffinity.net/view/21835115/",
"#category": ("", "furaffinity", "post"),

Loading…
Cancel
Save