Skip to content

Commit 59636a3

Browse files
committed
3.0.150
1 parent 87c4e4e commit 59636a3

File tree

4 files changed

+14
-13
lines changed

4 files changed

+14
-13
lines changed

.github/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ To stop playing press Ctrl+C in either the terminal or mpv
9999
<details><summary>List all subcommands</summary>
100100

101101
$ library
102-
library (v3.0.149; 104 subcommands)
102+
library (v3.0.150; 104 subcommands)
103103

104104
Create database subcommands:
105105
╭─────────────────┬──────────────────────────────────────────╮

library/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from library.utils import argparse_utils, iterables
66
from library.utils.log_utils import log
77

8-
__version__ = "3.0.149"
8+
__version__ = "3.0.150"
99

1010
progs = {
1111
"Create database subcommands": {

library/folders/merge_mv.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -98,16 +98,17 @@ def parse_args(defaults_override=None):
9898
else:
9999
args.file_over_file = arggroups.file_over_file("delete-dest")
100100

101-
exts = set(args.ext or [])
102-
if DBType.audio in args.profiles:
103-
exts |= consts.AUDIO_ONLY_EXTENSIONS
104-
if DBType.video in args.profiles:
105-
exts |= consts.VIDEO_EXTENSIONS
106-
if DBType.image in args.profiles:
107-
exts |= consts.IMAGE_EXTENSIONS
108-
if DBType.text in args.profiles:
109-
exts |= consts.TEXTRACT_EXTENSIONS
110-
args.ext = tuple(exts)
101+
if args.profiles:
102+
exts = set(args.ext or [])
103+
if DBType.audio in args.profiles:
104+
exts |= consts.AUDIO_ONLY_EXTENSIONS
105+
if DBType.video in args.profiles:
106+
exts |= consts.VIDEO_EXTENSIONS
107+
if DBType.image in args.profiles:
108+
exts |= consts.IMAGE_EXTENSIONS
109+
if DBType.text in args.profiles:
110+
exts |= consts.TEXTRACT_EXTENSIONS
111+
args.ext = tuple(exts)
111112

112113
return args
113114

library/utils/arggroups.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1314,7 +1314,7 @@ def regex_sort(parent_parser):
13141314
"--preprocess",
13151315
action=argparse.BooleanOptionalAction,
13161316
default=True,
1317-
help="Remove junk common to filenames and URLs, eg. %20",
1317+
help="Remove junk common to filenames and URLs, eg. %%20",
13181318
)
13191319

13201320

0 commit comments

Comments
 (0)