[E621:pool] fix AttributeError (#7265)

fixes regression introduced in 24bbcbcfa3
This commit is contained in:
Mike Fährmann
2025-03-29 20:06:11 +01:00
parent add52e6880
commit 4bcbc2d5b4
4 changed files with 8 additions and 7 deletions

View File

@@ -282,10 +282,11 @@ class DanbooruPoolExtractor(DanbooruExtractor):
example = "https://danbooru.donmai.us/pools/12345"
def metadata(self):
return self._collection_metadata(self.groups[-1], "pool")
self.pool_id = self.groups[-1]
return self._collection_metadata(self.pool_id, "pool")
def posts(self):
return self._collection_posts(self.groups[-1], "pool")
return self._collection_posts(self.pool_id, "pool")
class DanbooruFavgroupExtractor(DanbooruExtractor):

View File

@@ -6,5 +6,5 @@
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
__version__ = "1.29.3"
__version__ = "1.29.4-dev"
__variant__ = None

View File

@@ -140,11 +140,11 @@ __tests__ = (
},
{
"#url" : "https://e621.net/favorites?page=2&user_id=53275",
"#url" : "https://e621.net/favorites?page=1&user_id=460755",
"#category": ("E621", "e621", "favorite"),
"#class" : e621.E621FavoriteExtractor,
"#pattern" : r"https://static\d.e621.net/data/../../[0-9a-f]+",
"#count" : "> 260",
"#count" : 15,
},
{

View File

@@ -77,11 +77,11 @@ __tests__ = (
},
{
"#url" : "https://e926.net/favorites?page=2&user_id=53275",
"#url" : "https://e926.net/favorites?page=1&user_id=460755",
"#category": ("E621", "e926", "favorite"),
"#class" : e621.E621FavoriteExtractor,
"#pattern" : r"https://static\d.e926.net/data/../../[0-9a-f]+",
"#count" : "> 260",
"#count" : 15,
},
)