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)
`size` | integer | File size (bytes)
`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
`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)

View File

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

View File

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