[furaffinity] fix 'artist' metadata (#7115 #6582)

https://github.com/mikf/gallery-dl/issues/6582#issuecomment-2696619061
This commit is contained in:
Mike Fährmann
2025-03-04 16:48:17 +01:00
parent 5486a9c429
commit b7bb40c06b

View File

@@ -98,7 +98,8 @@ class FuraffinityExtractor(Extractor):
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>')
@@ -121,6 +122,7 @@ class FuraffinityExtractor(Extractor):
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()