1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 18:53:21 +01:00

[gelbooru] add 'date_favorited' metadata field

This commit is contained in:
Mike Fährmann 2024-03-18 20:46:11 +01:00
parent 0d69af94d5
commit 6d93295fea
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -213,7 +213,9 @@ class GelbooruFavoriteExtractor(GelbooruBase,
skip = 0
for fav in favs:
yield from self._api_request({"id": fav["favorite"]})
for post in self._api_request({"id": fav["favorite"]}):
post["date_favorited"] = text.parse_timestamp(fav["added"])
yield post
params["pid"] += 1
@ -238,7 +240,9 @@ class GelbooruFavoriteExtractor(GelbooruBase,
skip = 0
for fav in favs:
yield from self._api_request({"id": fav["favorite"]})
for post in self._api_request({"id": fav["favorite"]}):
post["date_favorited"] = text.parse_timestamp(fav["added"])
yield post
params["pid"] -= 1
if params["pid"] < 0: