mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-22 02:32:33 +01:00
[inkbunny:favorite] update test
This commit is contained in:
parent
8c40094905
commit
ac3ff25236
@ -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="/', '"')
|
||||
|
@ -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",
|
||||
},
|
||||
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user