Skip to content

Commit

Permalink
Add new config (no_group_name)
Browse files Browse the repository at this point in the history
  • Loading branch information
mansuf committed Sep 10, 2022
1 parent 3eb2d2f commit e94d991
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- Added ability to disable creation of chapter info for any `single` and `volume` formats [#30](https://github.com/mansuf/mangadex-downloader/issues/30)
- Added new config
- `no_chapter_info`
- `no_group_name`

### Fix bugs

Expand Down
3 changes: 2 additions & 1 deletion mangadex_downloader/cli/args_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,8 @@ def get_args(argv):
'--no-group-name',
'-ngn',
action='store_true',
help='Do not use scanlation group name for each chapter'
help='Do not use scanlation group name for each chapter',
default=config.no_group_name
)
chap_group.add_argument(
'--use-chapter-title',
Expand Down
4 changes: 4 additions & 0 deletions mangadex_downloader/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ class _Config:
"no_chapter_info": [
False,
_validate_bool
],
"no_group_name": [
False,
_validate_bool
]
}
default_conf = {
Expand Down

0 comments on commit e94d991

Please sign in to comment.