summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/pixiv.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/extractor/pixiv.py')
-rw-r--r--gallery_dl/extractor/pixiv.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/gallery_dl/extractor/pixiv.py b/gallery_dl/extractor/pixiv.py
index ebbce67..8bfae06 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"])