@@ -2031,6 +2031,7 @@ 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" )
20342035 parser .add_argument ("--seeders" , action = "append" , help = "Include torrents with N seeders" )
20352036 parser .add_argument ("--leechers" , action = "append" , help = "Include torrents with N leechers" )
20362037 parser .add_argument ("--time-added" , action = "append" , help = "Include torrents with N time since added" )
@@ -2069,7 +2070,7 @@ def qBittorrent_torrents(parent_parser):
20692070 )
20702071
20712072 parser .add_argument (
2072- "--file-counts" , "--files" , "--counts" , action = "store_true" , help = "Include file counts column (a bit slow)"
2073+ "--file-counts" , action = "store_true" , help = "Include file counts column (a bit slow)"
20732074 )
20742075 parser .add_argument ("--trackers" , action = "store_true" , help = "Include tracker column" )
20752076 parser .add_argument ("--status" , "--state" , action = "store_true" , help = "Include state column" )
@@ -2098,6 +2099,7 @@ def qBittorrent_torrents_post(args):
20982099 args .remaining = sql_utils .parse_human_to_lambda (nums .human_to_bytes , args .remaining )
20992100 args .uploaded = sql_utils .parse_human_to_lambda (nums .human_to_bytes , args .uploaded )
21002101 args .avg_sizes = sql_utils .parse_human_to_lambda (nums .human_to_bytes , args .avg_sizes )
2102+ args .file_count = sql_utils .parse_human_to_lambda (int , args .file_count )
21012103
21022104 args .priority = sql_utils .parse_human_to_lambda (int , args .priority )
21032105 args .seeders = sql_utils .parse_human_to_lambda (int , args .seeders )
0 commit comments