Skip to content

Commit

Permalink
Merge branch 'main' into duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
bpepple committed Oct 7, 2023
2 parents 9e5ac33 + c8d36d9 commit 85e498a
Show file tree
Hide file tree
Showing 5 changed files with 236 additions and 231 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ repos:
- id: seed-isort-config
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.0.287
rev: v0.0.292
hooks:
- id: ruff
- repo: https://github.com/ambv/black
rev: 23.9.0
rev: 23.9.1
hooks:
- id: black
language_version: python3.9
2 changes: 1 addition & 1 deletion metrontagger/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"""Projects version information used in setup.py"""
__version__ = "1.6.2"
__version__ = "1.6.3"
2 changes: 2 additions & 0 deletions metrontagger/filerenamer.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ def determine_name(self: "FileRenamer", filename: Path) -> Optional[str]:
new_name = self.replace_token(new_name, "HC", "%format%")
elif meta_data.series.format == "Trade Paperback":
new_name = self.replace_token(new_name, "TPB", "%format%")
else:
new_name = self.replace_token(new_name, "", "%format%")
new_name = self.replace_token(new_name, meta_data.age_rating, "%maturityrating%")
new_name = self.replace_token(new_name, meta_data.stories, "%storyarc%")
new_name = self.replace_token(new_name, meta_data.series_group, "%seriesgroup%")
Expand Down
Loading

0 comments on commit 85e498a

Please sign in to comment.