[sankaku] simplify 'pool' tags (#1388)
normalize 'tags' and 'artist_tags' to a string-list
This commit is contained in:
@@ -124,9 +124,13 @@ class SankakuPoolExtractor(SankakuExtractor):
|
|||||||
|
|
||||||
def metadata(self):
|
def metadata(self):
|
||||||
pool = SankakuAPI(self).pools(self.pool_id)
|
pool = SankakuAPI(self).pools(self.pool_id)
|
||||||
|
pool["tags"] = [tag["name"] for tag in pool["tags"]]
|
||||||
|
pool["artist_tags"] = [tag["name"] for tag in pool["artist_tags"]]
|
||||||
|
|
||||||
self._posts = pool.pop("posts")
|
self._posts = pool.pop("posts")
|
||||||
for num, post in enumerate(self._posts, 1):
|
for num, post in enumerate(self._posts, 1):
|
||||||
post["num"] = num
|
post["num"] = num
|
||||||
|
|
||||||
return {"pool": pool}
|
return {"pool": pool}
|
||||||
|
|
||||||
def posts(self):
|
def posts(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user