Skip to content

Commit 98a111c

Browse files
committed
remove torrents-stop subcommands, add functionality to torrents subcommand
1 parent 33cbc23 commit 98a111c

File tree

13 files changed

+307
-432
lines changed

13 files changed

+307
-432
lines changed

library/__main__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@
7676
"images_to_pdf": "Convert folders of images into image PDFs",
7777
"pdf_edit": "Apply brightness, contrast, saturation, and sharpness adjustments to PDFs",
7878
"torrents_start": "Start torrents (qBittorrent-nox)",
79-
"torrents_stop": "Stop seeding torrents (qBittorrent-nox)",
80-
"torrents_stop_incomplete": "Stop downloading torrents (qBittorrent-nox)",
8179
},
8280
"Multi-database subcommands": {
8381
"merge_dbs": "Merge SQLite databases",
@@ -229,8 +227,6 @@ def print_help(parser) -> None:
229227
"library.mediafiles.images_to_pdf.images_to_pdf": ["images2pdf"],
230228
"library.mediafiles.pdf_edit.pdf_edit": [],
231229
"library.mediafiles.torrents_start.torrents_start": ["torrent-start"],
232-
"library.mediafiles.torrents_stop.torrents_stop": ["torrent-stop"],
233-
"library.mediafiles.torrents_stop_incomplete.torrents_stop_incomplete": ["torrent-stop-incomplete"],
234230
"library.misc.dedupe_czkawka.czkawka_dedupe": ["dedupe-czkawka"],
235231
"library.misc.export_text.export_text": [],
236232
"library.multidb.copy_play_counts.copy_play_counts": [],

library/createdb/fs_add.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def parse_args(action, usage):
4141

4242
parser.add_argument("--check-corrupt", "--check-corruption", action="store_true")
4343
arggroups.media_check(parser)
44-
parser.set_defaults(gap="0.10")
44+
parser.set_defaults(gap=0.10)
4545

4646
parser.add_argument(
4747
"--force", "-f", action="store_true", help="Mark all subpath files as deleted if no files found"
@@ -73,7 +73,6 @@ def parse_args(action, usage):
7373
raise SystemExit(3)
7474

7575
arggroups.process_ffmpeg_post(args)
76-
arggroups.media_check_post(args)
7776

7877
return args
7978

library/createdb/web_add.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,14 @@ def parse_args(action, **kwargs):
4848
parser.add_argument(
4949
"--sizes",
5050
"--size",
51+
"-S",
5152
action="append",
52-
help="Only grab extended metadata for files of specific sizes (uses the same syntax as fd-find)",
53+
help="""Only grab extended metadata for files of specific sizes (uses the same syntax as fd-find)
54+
-S 6 # 6 MB exactly (not likely)
55+
-S-6 # less than 6 MB
56+
-S+6 # more than 6 MB
57+
-S 6%%10 # 6 MB ±10 percent (between 5 and 7 MB)
58+
-S+5GB -S-7GB # between 5 and 7 GB""",
5359
)
5460

5561
arggroups.debug(parser)

library/mediafiles/media_check.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ def parse_args():
1818
arggroups.paths_or_stdin(parser)
1919
args = parser.parse_intermixed_args()
2020
arggroups.args_post(args, parser)
21-
22-
arggroups.media_check_post(args)
2321
return args
2422

2523

library/mediafiles/torrents_stop.py

Lines changed: 0 additions & 101 deletions
This file was deleted.

library/mediafiles/torrents_stop_incomplete.py

Lines changed: 0 additions & 127 deletions
This file was deleted.

0 commit comments

Comments
 (0)