Skip to content

Commit 72856da

Browse files
Custom Seperator (#49)
- Fix renaming issue, with images inside archives - Allow for a different seperator between words, options are: `-`, `_`, `.`, ` ` (space), closes #42 --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 8e238ef commit 72856da

14 files changed

+451
-266
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ repos:
1414
args:
1515
- --number
1616
- --wrap=keep
17+
exclude: ".github\/ISSUE_TEMPLATE\/.*.md"
1718
- repo: https://github.com/pre-commit/pre-commit-hooks
1819
rev: v5.0.0
1920
hooks:
@@ -38,6 +39,10 @@ repos:
3839
args:
3940
- --fix=auto
4041
- id: name-tests-test
42+
- id: pretty-format-json
43+
args:
44+
- --autofix
45+
- --indent=2
4146
- id: trailing-whitespace
4247
args:
4348
- --markdown-linebreak-ext=md

README.md

Lines changed: 86 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
[![Github Action - Testing](https://img.shields.io/github/actions/workflow/status/Buried-In-Code/Perdoo/testing.yaml?branch=main&logo=Github&label=Testing&style=flat-square)](https://github.com/Buried-In-Code/Perdoo/actions/workflows/testing.yaml)
1313
[![Github Action - Publishing](https://img.shields.io/github/actions/workflow/status/Buried-In-Code/Perdoo/publishing.yaml?branch=main&logo=Github&label=Publishing&style=flat-square)](https://github.com/Buried-In-Code/Perdoo/actions/workflows/publishing.yaml)
1414

15-
1615
Perdoo is designed to assist in sorting and organizing your comic collection by utilizing metadata files stored within comic archives.\
1716
Perdoo standardizes all your digital comics into a unified format (cbz).\
1817
It adds and/or updates metadata files using supported services.\
@@ -136,6 +135,92 @@ Naming is done based on the Comic Format, set the value to `""` and it will fall
136135
| `{upc}` | The issue's UPC. |
137136
| `{volume}` | The volume of the series. |
138137

138+
## Settings
139+
140+
To set Perdoo setting details, update the file: `~/.config/perdoo/settings.toml`.
141+
File will be created on first run.
142+
143+
### Example File
144+
145+
```toml
146+
[output]
147+
folder = "~/.local/share/perdoo"
148+
format = "cbz"
149+
150+
[output.comic_info]
151+
create = true
152+
handle_pages = true
153+
154+
[output.metron_info]
155+
create = true
156+
157+
[output.naming]
158+
seperator = "-"
159+
default = "{publisher-name}/{series-name}-v{volume}/{series-name}-v{volume}_#{number:3}"
160+
annual = ""
161+
digital_chapter = ""
162+
graphic_novel = ""
163+
hardcover = ""
164+
limited_series = ""
165+
omnibus = ""
166+
one_shot = ""
167+
single_issue = ""
168+
trade_paperback = ""
169+
170+
[services]
171+
order = ["Metron", "Marvel", "Comicvine"]
172+
173+
[services.comicvine]
174+
api_key = "<Comicvine API Key>"
175+
176+
[services.marvel]
177+
public_key = "<Marvel Public Key>"
178+
private_key = "<Marvel Private Key>"
179+
180+
[services.metron]
181+
username = "<Metron Username>"
182+
password = "<Metron Password>"
183+
184+
```
185+
186+
### Details
187+
188+
- `output.folder`
189+
The folder where the output files will be stored.
190+
Defaults to `~/.local/share/perdoo`.
191+
192+
- `output.format`
193+
The output file format for the comic archives.
194+
Defaults to `cbz`.
195+
196+
- `output.comic_info.create`
197+
Whether to create a ComicInfo.xml file in the output archive.
198+
Defaults to `true`.
199+
200+
- `output.comic_info.handle_pages`
201+
Whether to handle page data in the ComicInfo.xml file.
202+
Defaults to `true`.
203+
204+
- `output.metron_info.create`
205+
Whether to create a MetronInfo.xml file in the output archive.
206+
Defaults to `true`.
207+
208+
- `output.naming.seperator`
209+
The word separator used in the output file names.
210+
Defaults to `-`.
211+
Options are `-`, `_`, `.`, or ` ` (space).
212+
213+
- `output.naming.*`
214+
The naming patterns for different comic formats.
215+
Each pattern can be customized or left empty to use the default setting.
216+
The patterns support various metadata fields as described in the above "File Renaming and Organization" section.
217+
218+
- `services.order`
219+
The order in which the services will be used for metadata retrieval.
220+
Metadata will be fetched from the first service that returns a result.
221+
Don't include the service name in the list if you don't want to use it.
222+
Defaults to `["Metron", "Marvel", "Comicvine"]`, options are `Metron`, `Marvel` and `Comicvine`.
223+
139224
## Socials
140225

141226
[![Social - Fosstodon](https://img.shields.io/badge/%40BuriedInCode-teal?label=Fosstodon&logo=mastodon&style=for-the-badge)](https://fosstodon.org/@BuriedInCode)\

docs/img/perdoo-archive-view.svg

Lines changed: 59 additions & 49 deletions
Loading

docs/img/perdoo-commands.svg

Lines changed: 73 additions & 49 deletions
Loading

docs/img/perdoo-import.svg

Lines changed: 125 additions & 49 deletions
Loading

docs/img/perdoo-settings-locate.svg

Lines changed: 41 additions & 53 deletions
Loading

0 commit comments

Comments
 (0)