Fix files priority field

This commit is contained in:
Joel Wachsler 2022-08-05 23:48:17 +00:00
parent 45813813c9
commit 3d6e1cb567
3 changed files with 46 additions and 31 deletions

View File

@ -1657,7 +1657,7 @@ Property | Type | Description
`name` | string | File name (including relative path) `name` | string | File name (including relative path)
`size` | integer | File size (bytes) `size` | integer | File size (bytes)
`progress` | float | File progress (percentage/100) `progress` | float | File progress (percentage/100)
`priority` | integer | File priority. See possible values here below `priority` | object | priority object see table below. File priority. See possible values here below
`is_seed` _optional_ | 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) `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) `availability` | float | Percentage of file pieces currently available (percentage/100)

View File

@ -1946,15 +1946,20 @@
), ),
}, },
), ),
Number( Object(
TypeInfo { Object {
type_info: TypeInfo {
name: "upload_slots_behavior", name: "upload_slots_behavior",
description: Some( description: Some(
"Upload slots behavior used (see list of possible values below)", "upload_slots_behavior object see table below. Upload slots behavior used (see list of possible values below)",
), ),
is_optional: true, is_optional: true,
is_list: false, is_list: false,
}, },
ref_type: String(
"UploadSlotsBehavior",
),
},
), ),
Number( Number(
TypeInfo { TypeInfo {
@ -1966,15 +1971,20 @@
is_list: false, is_list: false,
}, },
), ),
Number( Object(
TypeInfo { Object {
type_info: TypeInfo {
name: "utp_tcp_mixed_mode", name: "utp_tcp_mixed_mode",
description: Some( description: Some(
"μTP-TCP mixed mode algorithm (see list of possible values below)", "utp_tcp_mixed_mode object see table below. μTP-TCP mixed mode algorithm (see list of possible values below)",
), ),
is_optional: true, is_optional: true,
is_list: false, is_list: false,
}, },
ref_type: String(
"UtpTcpMixedMode",
),
},
), ),
], ],
is_list: false, is_list: false,
@ -4475,15 +4485,20 @@
is_list: false, is_list: false,
}, },
), ),
Number( Object(
TypeInfo { Object {
type_info: TypeInfo {
name: "priority", name: "priority",
description: Some( description: Some(
"File priority. See possible values here below", "priority object see table below. File priority. See possible values here below",
), ),
is_optional: false, is_optional: false,
is_list: false, is_list: false,
}, },
ref_type: String(
"Priority",
),
},
), ),
Bool( Bool(
TypeInfo { TypeInfo {

View File

@ -2561,11 +2561,11 @@ TokenTree {
], ],
}, },
TableRow { TableRow {
raw: "`upload_slots_behavior` _optional_ | integer | Upload slots behavior used (see list of possible values below)", raw: "`upload_slots_behavior` _optional_ | object | upload_slots_behavior object see table below. Upload slots behavior used (see list of possible values below)",
columns: [ columns: [
"upload_slots_behavior _optional_", "upload_slots_behavior _optional_",
"integer", "object",
"Upload slots behavior used (see list of possible values below)", "upload_slots_behavior object see table below. Upload slots behavior used (see list of possible values below)",
], ],
}, },
TableRow { TableRow {
@ -2577,11 +2577,11 @@ TokenTree {
], ],
}, },
TableRow { TableRow {
raw: "`utp_tcp_mixed_mode` _optional_ | integer | μTP-TCP mixed mode algorithm (see list of possible values below)", raw: "`utp_tcp_mixed_mode` _optional_ | object | utp_tcp_mixed_mode object see table below. μTP-TCP mixed mode algorithm (see list of possible values below)",
columns: [ columns: [
"utp_tcp_mixed_mode _optional_", "utp_tcp_mixed_mode _optional_",
"integer", "object",
"μTP-TCP mixed mode algorithm (see list of possible values below)", "utp_tcp_mixed_mode object see table below. μTP-TCP mixed mode algorithm (see list of possible values below)",
], ],
}, },
], ],
@ -7948,11 +7948,11 @@ TokenTree {
], ],
}, },
TableRow { TableRow {
raw: "`priority` | integer | File priority. See possible values here below", raw: "`priority` | object | priority object see table below. File priority. See possible values here below",
columns: [ columns: [
"priority", "priority",
"integer", "object",
"File priority. See possible values here below", "priority object see table below. File priority. See possible values here below",
], ],
}, },
TableRow { TableRow {