@@ -2031,7 +2031,9 @@ def qBittorrent_torrents(parent_parser):
20312031 action = "append" ,
20322032 help = """Include torrents constrained by average file sizes (uses the same syntax as fd-find)""" ,
20332033 )
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+ )
20352037 parser .add_argument ("--seeders" , action = "append" , help = "Include torrents with N seeders" )
20362038 parser .add_argument ("--leechers" , action = "append" , help = "Include torrents with N leechers" )
20372039 parser .add_argument ("--time-added" , action = "append" , help = "Include torrents with N time since added" )
@@ -2045,6 +2047,7 @@ def qBittorrent_torrents(parent_parser):
20452047 parser .add_argument ("--priority" , action = "append" , help = "Include torrents with N priority" )
20462048 parser .add_argument ("--progress" , action = "append" , help = "Include torrents with N%% progress" )
20472049 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" )
20482051 parser .add_argument ("--uploaded" , action = "append" , help = "Include torrents with N bytes uploaded" )
20492052 parser .add_argument ("--ratio" , action = "append" , help = "Include torrents with N ratio" )
20502053
@@ -2069,9 +2072,7 @@ def qBittorrent_torrents(parent_parser):
20692072 help = "Include uploading torrents" ,
20702073 )
20712074
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)" )
20752076 parser .add_argument ("--trackers" , action = "store_true" , help = "Include tracker column" )
20762077 parser .add_argument ("--status" , "--state" , action = "store_true" , help = "Include state column" )
20772078 parser .add_argument ("--paths" , action = "store_true" , help = "Include downloading/seeding path columns" )
@@ -2097,6 +2098,7 @@ def qBittorrent_torrents(parent_parser):
20972098def qBittorrent_torrents_post (args ):
20982099 args .sizes = sql_utils .parse_human_to_lambda (nums .human_to_bytes , args .sizes )
20992100 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 )
21002102 args .uploaded = sql_utils .parse_human_to_lambda (nums .human_to_bytes , args .uploaded )
21012103 args .avg_sizes = sql_utils .parse_human_to_lambda (nums .human_to_bytes , args .avg_sizes )
21022104 args .file_count = sql_utils .parse_human_to_lambda (int , args .file_count )
0 commit comments