From 141ca4ac0a528bbbd51689ad167f6628ed4f6781 Mon Sep 17 00:00:00 2001 From: thatfuckingbird <67429906+thatfuckingbird@users.noreply.github.com> Date: Fri, 23 Apr 2021 23:02:41 +0200 Subject: [PATCH] [pixiv] also save untranslated tags when translated-tags is enabled (#1501) --- gallery_dl/extractor/pixiv.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gallery_dl/extractor/pixiv.py b/gallery_dl/extractor/pixiv.py index ebbce670..8bfae06a 100644 --- a/gallery_dl/extractor/pixiv.py +++ b/gallery_dl/extractor/pixiv.py @@ -46,6 +46,10 @@ class PixivExtractor(Extractor): del work["image_urls"] del work["meta_pages"] work["num"] = 0 + if self.translated_tags: + work["untranslated_tags"] = [ + tag["name"] for tag in work["tags"] + ] work["tags"] = [tag[tkey] or tag["name"] for tag in work["tags"]] work["date"] = text.parse_datetime(work["create_date"]) work["rating"] = ratings.get(work["x_restrict"])