Skip to content

Commit

Permalink
[pixiv] rename "noop" value for 'tags' option to "original"
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed May 7, 2021
1 parent 4e1d33c commit 36ed1ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1339,11 +1339,11 @@ Type
Default
``"japanese"``
Description
Controls how ``tags`` metadata is transformed.
Controls the ``tags`` metadata field.

* `"japanese"`: List of original Japanese tags
* `"japanese"`: List of Japanese tags
* `"translated"`: List of translated tags
* `"noop"`: Unmodified list of both Japanese and translated tags
* `"original"`: Unmodified list with both Japanese and translated tags


extractor.pixiv.ugoira
Expand Down
2 changes: 1 addition & 1 deletion gallery_dl/extractor/pixiv.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __init__(self, match):

def items(self):
tags = self.config("tags", "japanese")
if tags == "noop":
if tags == "original":
transform_tags = None
elif tags == "translated":
def transform_tags(work):
Expand Down

0 comments on commit 36ed1ef

Please sign in to comment.