Skip to content

Commit

Permalink
[furaffinity] fix 'artist' metadata (#7115 #6582)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Mar 4, 2025
1 parent 5486a9c commit b7bb40c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gallery_dl/extractor/furaffinity.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ def _parse_post(self, post_id):
data["tags"] = text.split_html(extr(
'class="tags-row">', '</section>'))
data["title"] = text.unescape(extr("<h2><p>", "</p></h2>"))
data["artist"] = extr("<strong>", "<")
extr('title=', '"')
data["artist"] = extr(">", "<")
data["_description"] = extr(
'class="submission-description user-submitted-links">',
' </div>')
Expand All @@ -121,6 +122,7 @@ def _parse_post(self, post_id):
else:
# old site layout
data["title"] = text.unescape(extr("<h2>", "</h2>"))
extr('title=', '"')
data["artist"] = extr(">", "<")
data["fa_category"] = extr("<b>Category:</b>", "<").strip()
data["theme"] = extr("<b>Theme:</b>", "<").strip()
Expand Down

0 comments on commit b7bb40c

Please sign in to comment.