1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-25 04:02:32 +01:00

[inkbunny:favorite] update test

This commit is contained in:
Mike Fährmann 2024-09-25 20:25:33 +02:00
parent 8c40094905
commit ac3ff25236
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
2 changed files with 4 additions and 3 deletions

View File

@ -153,8 +153,8 @@ class InkbunnyFavoriteExtractor(InkbunnyExtractor):
def metadata(self):
# Lookup fav user ID as username
path = "/userfavorites_process.php?favs_user_id=" + self.user_id
url = self.root + path
url = "{}/userfavorites_process.php?favs_user_id={}".format(
self.root, self.user_id)
page = self.request(url).text
user_link = text.extr(page, '<a rel="author"', '</a>')
favs_username = text.extr(user_link, 'href="/', '"')

View File

@ -91,7 +91,8 @@ __tests__ = (
"#pattern" : r"https://[\w.]+\.metapix\.net/files/full/\d+/\d+_\w+_.+",
"#range" : "20-50",
"favs_user_id": "20969",
"favs_user_id" : "20969",
"favs_username": "soina",
},
{