Skip to content

Commit ef000dc

Browse files
committed
3.0.032
1 parent e243f9a commit ef000dc

File tree

6 files changed

+17
-9
lines changed

6 files changed

+17
-9
lines changed

.github/README.md

Lines changed: 5 additions & 3 deletions
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.031; 99 subcommands)
102+
library (v3.0.032; 99 subcommands)
103103

104104
Create database subcommands:
105105
╭─────────────────┬──────────────────────────────────────────╮
@@ -2141,6 +2141,7 @@ Inspired somewhat by https://nikkhokkho.sourceforge.io/?page=FileOptimizer
21412141
usage: library torrents-stop
21422142

21432143
Stop torrents in qBittorrent-nox with the following defaults:
2144+
- tagged 'xklb'
21442145
- >180 days active seeding
21452146
- >90 days since last peer
21462147
- >3 current seeders
@@ -2150,7 +2151,7 @@ Inspired somewhat by https://nikkhokkho.sourceforge.io/?page=FileOptimizer
21502151

21512152
library torrents-stop --min-seeders 3 --min-days-stalled-seed 10 --min-days-seeding 14
21522153

2153-
When --mark-deleted is provided, the torrents are tagged with 'delete' in qBittorrent
2154+
When --mark-deleted is provided, the torrents are tagged with 'xklb-delete' in qBittorrent
21542155
When --delete-rows is provided, the metadata is removed from qBittorrent
21552156
When --delete-files is provided, the downloaded files are deleted
21562157

@@ -2165,6 +2166,7 @@ Inspired somewhat by https://nikkhokkho.sourceforge.io/?page=FileOptimizer
21652166
usage: library torrents-stop-incomplete
21662167

21672168
Stop torrents in qBittorrent-nox with the following defaults:
2169+
- tagged 'xklb'
21682170
- >90 days since last seen complete (or never)
21692171
- >60 days active downloading
21702172
- >30 days since last peer (or never)
@@ -2173,7 +2175,7 @@ Inspired somewhat by https://nikkhokkho.sourceforge.io/?page=FileOptimizer
21732175

21742176
library torrents-stop --min-days-downloading 7
21752177

2176-
When --mark-deleted is provided, the torrents are tagged with 'delete' in qBittorrent
2178+
When --mark-deleted is provided, the torrents are tagged with 'xklb-delete' in qBittorrent
21772179
When --delete-rows is provided, the metadata is removed from qBittorrent
21782180
When --delete-files is provided, all downloaded files are deleted.
21792181
By default, salvage is provided to files which have more than 73% progress.

xklb/__main__.py

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

8-
__version__ = "3.0.031"
8+
__version__ = "3.0.032"
99

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

xklb/createdb/torrents_add.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010

1111
def parse_args():
1212
parser = argparse_utils.ArgumentParser(usage=usage.torrents_add)
13-
13+
parser.add_argument(
14+
"--force",
15+
action="store_true",
16+
help="Add metadata for paths even if the info_hash already exists in the media table",
17+
)
1418
arggroups.debug(parser)
1519

1620
arggroups.database(parser)

xklb/mediafiles/torrents_stop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def torrents_stop():
4747

4848
qbt_client = start_qBittorrent(args)
4949

50-
torrents = qbt_client.torrents_info()
50+
torrents = qbt_client.torrents_info(tag="xklb")
5151
torrents = sorted(torrents, key=lambda t: -t.added_on)
5252

5353
states = ["queuedUP", "forcedUP", "stalledUP", "uploading"]

xklb/mediafiles/torrents_stop_incomplete.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def torrents_stop_incomplete():
4545

4646
qbt_client = start_qBittorrent(args)
4747

48-
torrents = qbt_client.torrents_info()
48+
torrents = qbt_client.torrents_info(tag="xklb")
4949
torrents = sorted(torrents, key=lambda t: -t.added_on)
5050

5151
states = ["queuedDL", "forcedDL", "stalledDL", "downloading", "forcedMetaDL", "metaDL"]

xklb/usage.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1937,6 +1937,7 @@ def play(action) -> str:
19371937
torrents_stop = """library torrents-stop
19381938
19391939
Stop torrents in qBittorrent-nox with the following defaults:
1940+
- tagged 'xklb'
19401941
- >180 days active seeding
19411942
- >90 days since last peer
19421943
- >3 current seeders
@@ -1946,14 +1947,15 @@ def play(action) -> str:
19461947
19471948
library torrents-stop --min-seeders 3 --min-days-stalled-seed 10 --min-days-seeding 14
19481949
1949-
When --mark-deleted is provided, the torrents are tagged with 'delete' in qBittorrent
1950+
When --mark-deleted is provided, the torrents are tagged with 'xklb-delete' in qBittorrent
19501951
When --delete-rows is provided, the metadata is removed from qBittorrent
19511952
When --delete-files is provided, the downloaded files are deleted
19521953
"""
19531954

19541955
torrents_stop_incomplete = """library torrents-stop-incomplete
19551956
19561957
Stop torrents in qBittorrent-nox with the following defaults:
1958+
- tagged 'xklb'
19571959
- >90 days since last seen complete (or never)
19581960
- >60 days active downloading
19591961
- >30 days since last peer (or never)
@@ -1962,7 +1964,7 @@ def play(action) -> str:
19621964
19631965
library torrents-stop --min-days-downloading 7
19641966
1965-
When --mark-deleted is provided, the torrents are tagged with 'delete' in qBittorrent
1967+
When --mark-deleted is provided, the torrents are tagged with 'xklb-delete' in qBittorrent
19661968
When --delete-rows is provided, the metadata is removed from qBittorrent
19671969
When --delete-files is provided, all downloaded files are deleted.
19681970
By default, salvage is provided to files which have more than 73%% progress.

0 commit comments

Comments
 (0)