[furaffinity] remove end of system messages
This commit is contained in:
@@ -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(
|
||||
extr('System Message', '</section>') or
|
||||
extr('System Message', '</table>')
|
||||
)
|
||||
)
|
||||
return None
|
||||
msg = text.remove_html(
|
||||
extr('System Message', '</section>') or
|
||||
extr('System Message', '</table>')
|
||||
).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"),
|
||||
|
||||
Reference in New Issue
Block a user