@@ -2031,7 +2031,9 @@ def qBittorrent_torrents(parent_parser):
2031
2031
action = "append" ,
2032
2032
help = """Include torrents constrained by average file sizes (uses the same syntax as fd-find)""" ,
2033
2033
)
2034
- parser .add_argument ("--file-count" , "--files" , action = "append" , help = "Include torrents constrained by total file counts" )
2034
+ parser .add_argument (
2035
+ "--file-count" , "--files" , action = "append" , help = "Include torrents constrained by total file counts"
2036
+ )
2035
2037
parser .add_argument ("--seeders" , action = "append" , help = "Include torrents with N seeders" )
2036
2038
parser .add_argument ("--leechers" , action = "append" , help = "Include torrents with N leechers" )
2037
2039
parser .add_argument ("--time-added" , action = "append" , help = "Include torrents with N time since added" )
@@ -2045,6 +2047,7 @@ def qBittorrent_torrents(parent_parser):
2045
2047
parser .add_argument ("--priority" , action = "append" , help = "Include torrents with N priority" )
2046
2048
parser .add_argument ("--progress" , action = "append" , help = "Include torrents with N%% progress" )
2047
2049
parser .add_argument ("--remaining" , action = "append" , help = "Include torrents with N bytes remaining" )
2050
+ parser .add_argument ("--downloaded" , action = "append" , help = "Include torrents with N bytes downloaded" )
2048
2051
parser .add_argument ("--uploaded" , action = "append" , help = "Include torrents with N bytes uploaded" )
2049
2052
parser .add_argument ("--ratio" , action = "append" , help = "Include torrents with N ratio" )
2050
2053
@@ -2069,9 +2072,7 @@ def qBittorrent_torrents(parent_parser):
2069
2072
help = "Include uploading torrents" ,
2070
2073
)
2071
2074
2072
- parser .add_argument (
2073
- "--file-counts" , action = "store_true" , help = "Include file counts column (a bit slow)"
2074
- )
2075
+ parser .add_argument ("--file-counts" , action = "store_true" , help = "Include file counts column (a bit slow)" )
2075
2076
parser .add_argument ("--trackers" , action = "store_true" , help = "Include tracker column" )
2076
2077
parser .add_argument ("--status" , "--state" , action = "store_true" , help = "Include state column" )
2077
2078
parser .add_argument ("--paths" , action = "store_true" , help = "Include downloading/seeding path columns" )
@@ -2097,6 +2098,7 @@ def qBittorrent_torrents(parent_parser):
2097
2098
def qBittorrent_torrents_post (args ):
2098
2099
args .sizes = sql_utils .parse_human_to_lambda (nums .human_to_bytes , args .sizes )
2099
2100
args .remaining = sql_utils .parse_human_to_lambda (nums .human_to_bytes , args .remaining )
2101
+ args .downloaded = sql_utils .parse_human_to_lambda (nums .human_to_bytes , args .downloaded )
2100
2102
args .uploaded = sql_utils .parse_human_to_lambda (nums .human_to_bytes , args .uploaded )
2101
2103
args .avg_sizes = sql_utils .parse_human_to_lambda (nums .human_to_bytes , args .avg_sizes )
2102
2104
args .file_count = sql_utils .parse_human_to_lambda (int , args .file_count )
0 commit comments