[furaffinity] remove end of system messages
This commit is contained in:
@@ -78,14 +78,12 @@ class FuraffinityExtractor(Extractor):
|
|||||||
|
|
||||||
path = extr('href="//d', '"')
|
path = extr('href="//d', '"')
|
||||||
if not path:
|
if not path:
|
||||||
self.log.warning(
|
msg = text.remove_html(
|
||||||
"Unable to download post %s (\"%s\")",
|
extr('System Message', '</section>') or
|
||||||
post_id, text.remove_html(
|
extr('System Message', '</table>')
|
||||||
extr('System Message', '</section>') or
|
).partition(" . Continue ")[0]
|
||||||
extr('System Message', '</table>')
|
return self.log.warning(
|
||||||
)
|
"Unable to download post %s (\"%s\")", post_id, msg)
|
||||||
)
|
|
||||||
return None
|
|
||||||
|
|
||||||
pi = text.parse_int
|
pi = text.parse_int
|
||||||
rh = text.remove_html
|
rh = text.remove_html
|
||||||
|
|||||||
@@ -159,6 +159,14 @@ __tests__ = (
|
|||||||
"width" : 488,
|
"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/",
|
"#url" : "https://furaffinity.net/view/21835115/",
|
||||||
"#category": ("", "furaffinity", "post"),
|
"#category": ("", "furaffinity", "post"),
|
||||||
|
|||||||
Reference in New Issue
Block a user