From 4fad724316a699fbf6257c46d91ccd9593fb92ae Mon Sep 17 00:00:00 2001 From: Joel Wachsler Date: Fri, 5 Aug 2022 19:30:27 +0000 Subject: [PATCH] Make is_seed optional --- qbittorrent-web-api-gen/api-4_1.md | 2 +- qbittorrent-web-api-gen/groups.txt | 4 ++-- qbittorrent-web-api-gen/token_tree.txt | 7 ++----- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/qbittorrent-web-api-gen/api-4_1.md b/qbittorrent-web-api-gen/api-4_1.md index 24cce65..e20ac89 100644 --- a/qbittorrent-web-api-gen/api-4_1.md +++ b/qbittorrent-web-api-gen/api-4_1.md @@ -1660,7 +1660,7 @@ Property | Type | Description `size` | integer | File size (bytes) `progress` | float | File progress (percentage/100) `priority` | integer | File priority. See possible values here below -`is_seed` | bool | True if file is seeding/complete +`is_seed` _optional_ | bool | True if file is seeding/complete `piece_range` | integer array | The first number is the starting piece index and the second number is the ending piece index (inclusive) `availability` | float | Percentage of file pieces currently available (percentage/100) diff --git a/qbittorrent-web-api-gen/groups.txt b/qbittorrent-web-api-gen/groups.txt index 178edbf..2518c2b 100644 --- a/qbittorrent-web-api-gen/groups.txt +++ b/qbittorrent-web-api-gen/groups.txt @@ -2994,7 +2994,7 @@ description: Some( "True if file is seeding/complete", ), - is_optional: false, + is_optional: true, is_list: false, }, ), @@ -3028,7 +3028,7 @@ ApiMethod { name: "pieceStates", description: Some( - "The response is a JSON array of `return_objects`;\n\n\nPossible values of `return_objects`:\n\n\nExample:\n\n```JSON\n[0,0,2,1,0,0,2,1]\n```", + "The response is a JSON array of `return_objects`;\n\nPossible values of `return_objects`:\n\n\nExample:\n\n```JSON\n[0,0,2,1,0,0,2,1]\n```", ), url: "pieceStates", types: CompositeTypes { diff --git a/qbittorrent-web-api-gen/token_tree.txt b/qbittorrent-web-api-gen/token_tree.txt index 1947a6b..9808ee7 100644 --- a/qbittorrent-web-api-gen/token_tree.txt +++ b/qbittorrent-web-api-gen/token_tree.txt @@ -7962,9 +7962,9 @@ TokenTree { ], }, TableRow { - raw: "`is_seed` | bool | True if file is seeding/complete", + raw: "`is_seed` _optional_ | bool | True if file is seeding/complete", columns: [ - "is_seed", + "is_seed _optional_", "bool", "True if file is seeding/complete", ], @@ -8194,9 +8194,6 @@ TokenTree { Text( "", ), - Text( - "", - ), Text( "Possible values of `return_objects`:", ),