diff options
| author | 2025-01-28 19:12:09 -0500 | |
|---|---|---|
| committer | 2025-01-28 19:12:09 -0500 | |
| commit | a26df18796ff4e506b16bf32fcec9336233b9e2e (patch) | |
| tree | 876512f59831cd670a90a0bc92bc85def6ea3d82 /gallery_dl/extractor/rule34xyz.py | |
| parent | 0532a387ef5b7fcb4507a9b094dca37a5f635fe1 (diff) | |
New upstream version 1.28.5.upstream/1.28.5
Diffstat (limited to 'gallery_dl/extractor/rule34xyz.py')
| -rw-r--r-- | gallery_dl/extractor/rule34xyz.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gallery_dl/extractor/rule34xyz.py b/gallery_dl/extractor/rule34xyz.py index f1e7518..3b8d344 100644 --- a/gallery_dl/extractor/rule34xyz.py +++ b/gallery_dl/extractor/rule34xyz.py @@ -60,18 +60,22 @@ class Rule34xyzExtractor(BooruExtractor): post.pop("filesPreview", None) post.pop("tagsWithType", None) post["date"] = text.parse_datetime( - post["created"], "%Y-%m-%dT%H:%M:%S.%f") + post["created"][:19], "%Y-%m-%dT%H:%M:%S") def _tags(self, post, _): if post.get("tagsWithType") is None: post.update(self._fetch_post(post["id"])) tags = collections.defaultdict(list) + tagslist = [] for tag in post["tagsWithType"]: - tags[tag["type"]].append(tag["value"]) + value = tag["value"] + tagslist.append(value) + tags[tag["type"]].append(value) types = self.TAG_TYPES for type, values in tags.items(): post["tags_" + types[type]] = values + post["tags"] = tagslist def _fetch_post(self, post_id): url = "{}/api/post/{}".format(self.root, post_id) |
