mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-25 12:12:34 +01:00
[kemonoparty] fix 'username' extraction (fixes #1652)
The site's <title> content changed from <title>NAME | Kemono</title> to <title> NAME | Kemono </title>
This commit is contained in:
parent
befe635022
commit
759735fb02
@ -28,7 +28,8 @@ class KemonopartyExtractor(Extractor):
|
||||
|
||||
if self.config("metadata"):
|
||||
username = text.unescape(text.extract(
|
||||
self.request(self.user_url).text, "<title>", " | Kemono<")[0])
|
||||
self.request(self.user_url).text, "<title>", " | Kemono"
|
||||
)[0]).lstrip()
|
||||
else:
|
||||
username = None
|
||||
|
||||
@ -133,6 +134,11 @@ class KemonopartyPostExtractor(KemonopartyExtractor):
|
||||
"pattern": r"https://data\.kemono\.party/(file|attachment)s"
|
||||
r"/gumroad/trylsc/IURjT/",
|
||||
}),
|
||||
# username (#1548, #1652)
|
||||
("https://kemono.party/gumroad/user/3252870377455/post/aJnAH", {
|
||||
"options": (("metadata", True),),
|
||||
"keyword": {"username": "Kudalyn's Creations"},
|
||||
}),
|
||||
("https://kemono.party/subscribestar/user/alcorart/post/184330"),
|
||||
)
|
||||
|
||||
|
@ -315,6 +315,9 @@ def setup_test_config():
|
||||
"e621", "inkbunny", "tapas", "pillowfort", "mangadex"):
|
||||
config.set(("extractor", category), "username", None)
|
||||
|
||||
config.set(("extractor", "kemonoparty"), "cookies", {
|
||||
"__ddg1": "0gBDGpJ3KZQmA4B9QH25", "__ddg2": "lmj5s1jnJOvhPXCX"})
|
||||
|
||||
config.set(("extractor", "mastodon.social"), "access-token",
|
||||
"Blf9gVqG7GytDTfVMiyYQjwVMQaNACgf3Ds3IxxVDUQ")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user