Skip to content

Commit

Permalink
[furaffinity] remove end of system messages
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Aug 7, 2024
1 parent 846512f commit c07a074
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
14 changes: 6 additions & 8 deletions gallery_dl/extractor/furaffinity.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,12 @@ def _parse_post(self, post_id):

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
Expand Down
8 changes: 8 additions & 0 deletions test/results/furaffinity.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,14 @@
"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"),
Expand Down

0 comments on commit c07a074

Please sign in to comment.