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:
parent
0d69af94d5
commit
6d93295fea
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user