Fix table parsing
This commit is contained in:
		
							parent
							
								
									e58db20e21
								
							
						
					
					
						commit
						8db9faf5f0
					
				| @ -2983,7 +2983,7 @@ | |||||||
|             ApiMethod { |             ApiMethod { | ||||||
|                 name: "info", |                 name: "info", | ||||||
|                 description: Some( |                 description: Some( | ||||||
|                     "The response is a JSON object with the following fields\n\n\nIn addition to the above in partial data requests (see [Get partial data](#get-partial-data) for more info):\n\n\nPossible values of `connection_status`:\n\n\nExample:\n\n```JSON\n{\n    \"connection_status\":\"connected\",\n    \"dht_nodes\":386,\n    \"dl_info_data\":681521119,\n    \"dl_info_speed\":0,\n    \"dl_rate_limit\":0,\n    \"up_info_data\":10747904,\n    \"up_info_speed\":0,\n    \"up_rate_limit\":1048576\n}\n```", |                     "The response is a JSON object with the following fields\n\n\nIn addition to the above in partial data requests (see [Get partial data](#get-partial-data) for more info):\n\n\nPossible values of `connection_status`:\n\nValue               |\n\nExample:\n\n```JSON\n{\n    \"connection_status\":\"connected\",\n    \"dht_nodes\":386,\n    \"dl_info_data\":681521119,\n    \"dl_info_speed\":0,\n    \"dl_rate_limit\":0,\n    \"up_info_data\":10747904,\n    \"up_info_speed\":0,\n    \"up_rate_limit\":1048576\n}\n```", | ||||||
|                 ), |                 ), | ||||||
|                 parameters: None, |                 parameters: None, | ||||||
|                 return_type: Some( |                 return_type: Some( | ||||||
| @ -3106,24 +3106,7 @@ | |||||||
|                                         description: Some( |                                         description: Some( | ||||||
|                                             "Connection status. See possible values here below", |                                             "Connection status. See possible values here below", | ||||||
|                                         ), |                                         ), | ||||||
|                                         type_description: Some( |                                         type_description: None, | ||||||
|                                             TypeDescription { |  | ||||||
|                                                 values: [ |  | ||||||
|                                                     TypeDescriptions { |  | ||||||
|                                                         value: "connected", |  | ||||||
|                                                         description: "", |  | ||||||
|                                                     }, |  | ||||||
|                                                     TypeDescriptions { |  | ||||||
|                                                         value: "firewalled", |  | ||||||
|                                                         description: "", |  | ||||||
|                                                     }, |  | ||||||
|                                                     TypeDescriptions { |  | ||||||
|                                                         value: "disconnected", |  | ||||||
|                                                         description: "", |  | ||||||
|                                                     }, |  | ||||||
|                                                 ], |  | ||||||
|                                             }, |  | ||||||
|                                         ), |  | ||||||
|                                     }, |                                     }, | ||||||
|                                 ), |                                 ), | ||||||
|                             }, |                             }, | ||||||
|  | |||||||
| @ -62,8 +62,7 @@ impl MdToken { | |||||||
|         while let Some(line) = iter.next() { |         while let Some(line) = iter.next() { | ||||||
|             max_iterator_checker.decrease(); |             max_iterator_checker.decrease(); | ||||||
| 
 | 
 | ||||||
|             // assume that lines starting with "|" are tables
 |             if line.contains(" | ") || line.contains("-|") || line.contains("|-") { | ||||||
|             if line.contains('|') { |  | ||||||
|                 let table = TableParser::new(&mut max_iterator_checker, &mut iter).parse(line); |                 let table = TableParser::new(&mut max_iterator_checker, &mut iter).parse(line); | ||||||
|                 output.push(MdToken::Content(table)); |                 output.push(MdToken::Content(table)); | ||||||
|             } else if line.starts_with('#') { |             } else if line.starts_with('#') { | ||||||
|  | |||||||
| @ -146,4 +146,9 @@ mod tests { | |||||||
|     fn multi_table() { |     fn multi_table() { | ||||||
|         run_test!("multi_table"); |         run_test!("multi_table"); | ||||||
|     } |     } | ||||||
|  | 
 | ||||||
|  |     #[test] | ||||||
|  |     fn non_table_with_pipe() { | ||||||
|  |         run_test!("non_table_with_pipe"); | ||||||
|  |     } | ||||||
| } | } | ||||||
|  | |||||||
| @ -0,0 +1,17 @@ | |||||||
|  | TokenTree { | ||||||
|  |     title: None, | ||||||
|  |     content: [], | ||||||
|  |     children: [ | ||||||
|  |         TokenTree { | ||||||
|  |             title: Some( | ||||||
|  |                 "A", | ||||||
|  |             ), | ||||||
|  |             content: [ | ||||||
|  |                 Text( | ||||||
|  |                     "a|b", | ||||||
|  |                 ), | ||||||
|  |             ], | ||||||
|  |             children: [], | ||||||
|  |         }, | ||||||
|  |     ], | ||||||
|  | } | ||||||
| @ -0,0 +1,2 @@ | |||||||
|  | # A | ||||||
|  | a|b | ||||||
| @ -4972,24 +4972,20 @@ TokenTree { | |||||||
|                         Text( |                         Text( | ||||||
|                             "", |                             "", | ||||||
|                         ), |                         ), | ||||||
|  |                         Text( | ||||||
|  |                             "Value               |", | ||||||
|  |                         ), | ||||||
|                         Table( |                         Table( | ||||||
|                             Table { |                             Table { | ||||||
|                                 header: TableRow { |                                 header: TableRow { | ||||||
|                                     raw: "Value               |", |                                     raw: "--------------------|", | ||||||
|                                     columns: [ |                                     columns: [ | ||||||
|                                         "Value", |                                         "--------------------", | ||||||
|                                         "", |                                         "", | ||||||
|                                     ], |                                     ], | ||||||
|                                 }, |                                 }, | ||||||
|                                 split: "--------------------|", |                                 split: "`connected`         |", | ||||||
|                                 rows: [ |                                 rows: [ | ||||||
|                                     TableRow { |  | ||||||
|                                         raw: "`connected`         |", |  | ||||||
|                                         columns: [ |  | ||||||
|                                             "connected", |  | ||||||
|                                             "", |  | ||||||
|                                         ], |  | ||||||
|                                     }, |  | ||||||
|                                     TableRow { |                                     TableRow { | ||||||
|                                         raw: "`firewalled`        |", |                                         raw: "`firewalled`        |", | ||||||
|                                         columns: [ |                                         columns: [ | ||||||
| @ -7981,18 +7977,11 @@ TokenTree { | |||||||
|                         Text( |                         Text( | ||||||
|                             "```http", |                             "```http", | ||||||
|                         ), |                         ), | ||||||
|                         Table( |                         Text( | ||||||
|                             Table { |                             "/api/v2/torrents/pause?hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32|54eddd830a5b58480a6143d616a97e3a6c23c439", | ||||||
|                                 header: TableRow { |                         ), | ||||||
|                                     raw: "/api/v2/torrents/pause?hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32|54eddd830a5b58480a6143d616a97e3a6c23c439", |                         Text( | ||||||
|                                     columns: [ |                             "```", | ||||||
|                                         "/api/v2/torrents/pause?hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32", |  | ||||||
|                                         "54eddd830a5b58480a6143d616a97e3a6c23c439", |  | ||||||
|                                     ], |  | ||||||
|                                 }, |  | ||||||
|                                 split: "```", |  | ||||||
|                                 rows: [], |  | ||||||
|                             }, |  | ||||||
|                         ), |                         ), | ||||||
|                         Text( |                         Text( | ||||||
|                             "", |                             "", | ||||||
| @ -8092,18 +8081,11 @@ TokenTree { | |||||||
|                         Text( |                         Text( | ||||||
|                             "```http", |                             "```http", | ||||||
|                         ), |                         ), | ||||||
|                         Table( |                         Text( | ||||||
|                             Table { |                             "/api/v2/torrents/resume?hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32|54eddd830a5b58480a6143d616a97e3a6c23c439", | ||||||
|                                 header: TableRow { |                         ), | ||||||
|                                     raw: "/api/v2/torrents/resume?hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32|54eddd830a5b58480a6143d616a97e3a6c23c439", |                         Text( | ||||||
|                                     columns: [ |                             "```", | ||||||
|                                         "/api/v2/torrents/resume?hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32", |  | ||||||
|                                         "54eddd830a5b58480a6143d616a97e3a6c23c439", |  | ||||||
|                                     ], |  | ||||||
|                                 }, |  | ||||||
|                                 split: "```", |  | ||||||
|                                 rows: [], |  | ||||||
|                             }, |  | ||||||
|                         ), |                         ), | ||||||
|                         Text( |                         Text( | ||||||
|                             "", |                             "", | ||||||
| @ -8314,18 +8296,11 @@ TokenTree { | |||||||
|                         Text( |                         Text( | ||||||
|                             "```http", |                             "```http", | ||||||
|                         ), |                         ), | ||||||
|                         Table( |                         Text( | ||||||
|                             Table { |                             "/api/v2/torrents/recheck?hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32|54eddd830a5b58480a6143d616a97e3a6c23c439", | ||||||
|                                 header: TableRow { |                         ), | ||||||
|                                     raw: "/api/v2/torrents/recheck?hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32|54eddd830a5b58480a6143d616a97e3a6c23c439", |                         Text( | ||||||
|                                     columns: [ |                             "```", | ||||||
|                                         "/api/v2/torrents/recheck?hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32", |  | ||||||
|                                         "54eddd830a5b58480a6143d616a97e3a6c23c439", |  | ||||||
|                                     ], |  | ||||||
|                                 }, |  | ||||||
|                                 split: "```", |  | ||||||
|                                 rows: [], |  | ||||||
|                             }, |  | ||||||
|                         ), |                         ), | ||||||
|                         Text( |                         Text( | ||||||
|                             "", |                             "", | ||||||
| @ -8425,18 +8400,11 @@ TokenTree { | |||||||
|                         Text( |                         Text( | ||||||
|                             "```http", |                             "```http", | ||||||
|                         ), |                         ), | ||||||
|                         Table( |                         Text( | ||||||
|                             Table { |                             "/api/v2/torrents/reannounce?hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32|54eddd830a5b58480a6143d616a97e3a6c23c439", | ||||||
|                                 header: TableRow { |                         ), | ||||||
|                                     raw: "/api/v2/torrents/reannounce?hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32|54eddd830a5b58480a6143d616a97e3a6c23c439", |                         Text( | ||||||
|                                     columns: [ |                             "```", | ||||||
|                                         "/api/v2/torrents/reannounce?hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32", |  | ||||||
|                                         "54eddd830a5b58480a6143d616a97e3a6c23c439", |  | ||||||
|                                     ], |  | ||||||
|                                 }, |  | ||||||
|                                 split: "```", |  | ||||||
|                                 rows: [], |  | ||||||
|                             }, |  | ||||||
|                         ), |                         ), | ||||||
|                         Text( |                         Text( | ||||||
|                             "", |                             "", | ||||||
| @ -9380,18 +9348,11 @@ TokenTree { | |||||||
|                         Text( |                         Text( | ||||||
|                             "```http", |                             "```http", | ||||||
|                         ), |                         ), | ||||||
|                         Table( |                         Text( | ||||||
|                             Table { |                             "/api/v2/torrents/increasePrio?hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32|54eddd830a5b58480a6143d616a97e3a6c23c439", | ||||||
|                                 header: TableRow { |                         ), | ||||||
|                                     raw: "/api/v2/torrents/increasePrio?hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32|54eddd830a5b58480a6143d616a97e3a6c23c439", |                         Text( | ||||||
|                                     columns: [ |                             "```", | ||||||
|                                         "/api/v2/torrents/increasePrio?hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32", |  | ||||||
|                                         "54eddd830a5b58480a6143d616a97e3a6c23c439", |  | ||||||
|                                     ], |  | ||||||
|                                 }, |  | ||||||
|                                 split: "```", |  | ||||||
|                                 rows: [], |  | ||||||
|                             }, |  | ||||||
|                         ), |                         ), | ||||||
|                         Text( |                         Text( | ||||||
|                             "", |                             "", | ||||||
| @ -9498,18 +9459,11 @@ TokenTree { | |||||||
|                         Text( |                         Text( | ||||||
|                             "```http", |                             "```http", | ||||||
|                         ), |                         ), | ||||||
|                         Table( |                         Text( | ||||||
|                             Table { |                             "/api/v2/torrents/decreasePrio?hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32|54eddd830a5b58480a6143d616a97e3a6c23c439", | ||||||
|                                 header: TableRow { |                         ), | ||||||
|                                     raw: "/api/v2/torrents/decreasePrio?hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32|54eddd830a5b58480a6143d616a97e3a6c23c439", |                         Text( | ||||||
|                                     columns: [ |                             "```", | ||||||
|                                         "/api/v2/torrents/decreasePrio?hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32", |  | ||||||
|                                         "54eddd830a5b58480a6143d616a97e3a6c23c439", |  | ||||||
|                                     ], |  | ||||||
|                                 }, |  | ||||||
|                                 split: "```", |  | ||||||
|                                 rows: [], |  | ||||||
|                             }, |  | ||||||
|                         ), |                         ), | ||||||
|                         Text( |                         Text( | ||||||
|                             "", |                             "", | ||||||
| @ -9616,18 +9570,11 @@ TokenTree { | |||||||
|                         Text( |                         Text( | ||||||
|                             "```http", |                             "```http", | ||||||
|                         ), |                         ), | ||||||
|                         Table( |                         Text( | ||||||
|                             Table { |                             "/api/v2/torrents/topPrio?hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32|54eddd830a5b58480a6143d616a97e3a6c23c439", | ||||||
|                                 header: TableRow { |                         ), | ||||||
|                                     raw: "/api/v2/torrents/topPrio?hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32|54eddd830a5b58480a6143d616a97e3a6c23c439", |                         Text( | ||||||
|                                     columns: [ |                             "```", | ||||||
|                                         "/api/v2/torrents/topPrio?hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32", |  | ||||||
|                                         "54eddd830a5b58480a6143d616a97e3a6c23c439", |  | ||||||
|                                     ], |  | ||||||
|                                 }, |  | ||||||
|                                 split: "```", |  | ||||||
|                                 rows: [], |  | ||||||
|                             }, |  | ||||||
|                         ), |                         ), | ||||||
|                         Text( |                         Text( | ||||||
|                             "", |                             "", | ||||||
| @ -9734,18 +9681,11 @@ TokenTree { | |||||||
|                         Text( |                         Text( | ||||||
|                             "```http", |                             "```http", | ||||||
|                         ), |                         ), | ||||||
|                         Table( |                         Text( | ||||||
|                             Table { |                             "/api/v2/torrents/bottomPrio?hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32|54eddd830a5b58480a6143d616a97e3a6c23c439", | ||||||
|                                 header: TableRow { |                         ), | ||||||
|                                     raw: "/api/v2/torrents/bottomPrio?hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32|54eddd830a5b58480a6143d616a97e3a6c23c439", |                         Text( | ||||||
|                                     columns: [ |                             "```", | ||||||
|                                         "/api/v2/torrents/bottomPrio?hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32", |  | ||||||
|                                         "54eddd830a5b58480a6143d616a97e3a6c23c439", |  | ||||||
|                                     ], |  | ||||||
|                                 }, |  | ||||||
|                                 split: "```", |  | ||||||
|                                 rows: [], |  | ||||||
|                             }, |  | ||||||
|                         ), |                         ), | ||||||
|                         Text( |                         Text( | ||||||
|                             "", |                             "", | ||||||
| @ -9977,34 +9917,20 @@ TokenTree { | |||||||
|                         Text( |                         Text( | ||||||
|                             "", |                             "", | ||||||
|                         ), |                         ), | ||||||
|                         Table( |                         Text( | ||||||
|                             Table { |                             "hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32|284b83c9c7935002391129fd97f43db5d7cc2ba0", | ||||||
|                                 header: TableRow { |                         ), | ||||||
|                                     raw: "hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32|284b83c9c7935002391129fd97f43db5d7cc2ba0", |                         Text( | ||||||
|                                     columns: [ |                             "```", | ||||||
|                                         "hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32", |  | ||||||
|                                         "284b83c9c7935002391129fd97f43db5d7cc2ba0", |  | ||||||
|                                     ], |  | ||||||
|                                 }, |  | ||||||
|                                 split: "```", |  | ||||||
|                                 rows: [], |  | ||||||
|                             }, |  | ||||||
|                         ), |                         ), | ||||||
|                         Text( |                         Text( | ||||||
|                             "", |                             "", | ||||||
|                         ), |                         ), | ||||||
|                         Table( |                         Text( | ||||||
|                             Table { |                             "`hashes` can contain multiple hashes separated by `|` or set to `all`", | ||||||
|                                 header: TableRow { |                         ), | ||||||
|                                     raw: "`hashes` can contain multiple hashes separated by `|` or set to `all`", |                         Text( | ||||||
|                                     columns: [ |                             "", | ||||||
|                                         "hashes can contain multiple hashes separated by", |  | ||||||
|                                         "or set to all", |  | ||||||
|                                     ], |  | ||||||
|                                 }, |  | ||||||
|                                 split: "", |  | ||||||
|                                 rows: [], |  | ||||||
|                             }, |  | ||||||
|                         ), |                         ), | ||||||
|                         Text( |                         Text( | ||||||
|                             "Server reply (example):", |                             "Server reply (example):", | ||||||
| @ -10083,34 +10009,20 @@ TokenTree { | |||||||
|                         Text( |                         Text( | ||||||
|                             "", |                             "", | ||||||
|                         ), |                         ), | ||||||
|                         Table( |                         Text( | ||||||
|                             Table { |                             "hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32|284b83c9c7935002391129fd97f43db5d7cc2ba0&limit=131072", | ||||||
|                                 header: TableRow { |                         ), | ||||||
|                                     raw: "hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32|284b83c9c7935002391129fd97f43db5d7cc2ba0&limit=131072", |                         Text( | ||||||
|                                     columns: [ |                             "```", | ||||||
|                                         "hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32", |  | ||||||
|                                         "284b83c9c7935002391129fd97f43db5d7cc2ba0&limit=131072", |  | ||||||
|                                     ], |  | ||||||
|                                 }, |  | ||||||
|                                 split: "```", |  | ||||||
|                                 rows: [], |  | ||||||
|                             }, |  | ||||||
|                         ), |                         ), | ||||||
|                         Text( |                         Text( | ||||||
|                             "", |                             "", | ||||||
|                         ), |                         ), | ||||||
|                         Table( |                         Text( | ||||||
|                             Table { |                             "`hashes` can contain multiple hashes separated by `|` or set to `all`", | ||||||
|                                 header: TableRow { |                         ), | ||||||
|                                     raw: "`hashes` can contain multiple hashes separated by `|` or set to `all`", |                         Text( | ||||||
|                                     columns: [ |                             "`limit` is the download speed limit in bytes per second you want to set.", | ||||||
|                                         "hashes can contain multiple hashes separated by", |  | ||||||
|                                         "or set to all", |  | ||||||
|                                     ], |  | ||||||
|                                 }, |  | ||||||
|                                 split: "`limit` is the download speed limit in bytes per second you want to set.", |  | ||||||
|                                 rows: [], |  | ||||||
|                             }, |  | ||||||
|                         ), |                         ), | ||||||
|                         Text( |                         Text( | ||||||
|                             "", |                             "", | ||||||
| @ -10192,34 +10104,20 @@ TokenTree { | |||||||
|                         Text( |                         Text( | ||||||
|                             "", |                             "", | ||||||
|                         ), |                         ), | ||||||
|                         Table( |                         Text( | ||||||
|                             Table { |                             "hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32|284b83c9c7935002391129fd97f43db5d7cc2ba0&ratioLimit=1.0&seedingTimeLimit=60", | ||||||
|                                 header: TableRow { |                         ), | ||||||
|                                     raw: "hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32|284b83c9c7935002391129fd97f43db5d7cc2ba0&ratioLimit=1.0&seedingTimeLimit=60", |                         Text( | ||||||
|                                     columns: [ |                             "```", | ||||||
|                                         "hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32", |  | ||||||
|                                         "284b83c9c7935002391129fd97f43db5d7cc2ba0&ratioLimit=1.0&seedingTimeLimit=60", |  | ||||||
|                                     ], |  | ||||||
|                                 }, |  | ||||||
|                                 split: "```", |  | ||||||
|                                 rows: [], |  | ||||||
|                             }, |  | ||||||
|                         ), |                         ), | ||||||
|                         Text( |                         Text( | ||||||
|                             "", |                             "", | ||||||
|                         ), |                         ), | ||||||
|                         Table( |                         Text( | ||||||
|                             Table { |                             "`hashes` can contain multiple hashes separated by `|` or set to `all`", | ||||||
|                                 header: TableRow { |                         ), | ||||||
|                                     raw: "`hashes` can contain multiple hashes separated by `|` or set to `all`", |                         Text( | ||||||
|                                     columns: [ |                             "`ratioLimit` is the max ratio the torrent should be seeded until. `-2` means the global limit should be used, `-1` means no limit.", | ||||||
|                                         "hashes can contain multiple hashes separated by", |  | ||||||
|                                         "or set to all", |  | ||||||
|                                     ], |  | ||||||
|                                 }, |  | ||||||
|                                 split: "`ratioLimit` is the max ratio the torrent should be seeded until. `-2` means the global limit should be used, `-1` means no limit.", |  | ||||||
|                                 rows: [], |  | ||||||
|                             }, |  | ||||||
|                         ), |                         ), | ||||||
|                         Text( |                         Text( | ||||||
|                             "`seedingTimeLimit` is the max amount of time the torrent should be seeded. `-2` means the global limit should be used, `-1` means no limit.", |                             "`seedingTimeLimit` is the max amount of time the torrent should be seeded. `-2` means the global limit should be used, `-1` means no limit.", | ||||||
| @ -10304,34 +10202,20 @@ TokenTree { | |||||||
|                         Text( |                         Text( | ||||||
|                             "", |                             "", | ||||||
|                         ), |                         ), | ||||||
|                         Table( |                         Text( | ||||||
|                             Table { |                             "hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32|284b83c9c7935002391129fd97f43db5d7cc2ba0", | ||||||
|                                 header: TableRow { |                         ), | ||||||
|                                     raw: "hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32|284b83c9c7935002391129fd97f43db5d7cc2ba0", |                         Text( | ||||||
|                                     columns: [ |                             "```", | ||||||
|                                         "hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32", |  | ||||||
|                                         "284b83c9c7935002391129fd97f43db5d7cc2ba0", |  | ||||||
|                                     ], |  | ||||||
|                                 }, |  | ||||||
|                                 split: "```", |  | ||||||
|                                 rows: [], |  | ||||||
|                             }, |  | ||||||
|                         ), |                         ), | ||||||
|                         Text( |                         Text( | ||||||
|                             "", |                             "", | ||||||
|                         ), |                         ), | ||||||
|                         Table( |                         Text( | ||||||
|                             Table { |                             "`hashes` can contain multiple hashes separated by `|` or set to `all`", | ||||||
|                                 header: TableRow { |                         ), | ||||||
|                                     raw: "`hashes` can contain multiple hashes separated by `|` or set to `all`", |                         Text( | ||||||
|                                     columns: [ |                             "", | ||||||
|                                         "hashes can contain multiple hashes separated by", |  | ||||||
|                                         "or set to all", |  | ||||||
|                                     ], |  | ||||||
|                                 }, |  | ||||||
|                                 split: "", |  | ||||||
|                                 rows: [], |  | ||||||
|                             }, |  | ||||||
|                         ), |                         ), | ||||||
|                         Text( |                         Text( | ||||||
|                             "Server reply (example):", |                             "Server reply (example):", | ||||||
| @ -10416,34 +10300,20 @@ TokenTree { | |||||||
|                         Text( |                         Text( | ||||||
|                             "", |                             "", | ||||||
|                         ), |                         ), | ||||||
|                         Table( |                         Text( | ||||||
|                             Table { |                             "hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32|284b83c9c7935002391129fd97f43db5d7cc2ba0&limit=131072", | ||||||
|                                 header: TableRow { |                         ), | ||||||
|                                     raw: "hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32|284b83c9c7935002391129fd97f43db5d7cc2ba0&limit=131072", |                         Text( | ||||||
|                                     columns: [ |                             "```", | ||||||
|                                         "hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32", |  | ||||||
|                                         "284b83c9c7935002391129fd97f43db5d7cc2ba0&limit=131072", |  | ||||||
|                                     ], |  | ||||||
|                                 }, |  | ||||||
|                                 split: "```", |  | ||||||
|                                 rows: [], |  | ||||||
|                             }, |  | ||||||
|                         ), |                         ), | ||||||
|                         Text( |                         Text( | ||||||
|                             "", |                             "", | ||||||
|                         ), |                         ), | ||||||
|                         Table( |                         Text( | ||||||
|                             Table { |                             "`hashes` can contain multiple hashes separated by `|` or set to `all`", | ||||||
|                                 header: TableRow { |                         ), | ||||||
|                                     raw: "`hashes` can contain multiple hashes separated by `|` or set to `all`", |                         Text( | ||||||
|                                     columns: [ |                             "`limit` is the upload speed limit in bytes per second you want to set.", | ||||||
|                                         "hashes can contain multiple hashes separated by", |  | ||||||
|                                         "or set to all", |  | ||||||
|                                     ], |  | ||||||
|                                 }, |  | ||||||
|                                 split: "`limit` is the upload speed limit in bytes per second you want to set.", |  | ||||||
|                                 rows: [], |  | ||||||
|                             }, |  | ||||||
|                         ), |                         ), | ||||||
|                         Text( |                         Text( | ||||||
|                             "", |                             "", | ||||||
| @ -10525,34 +10395,20 @@ TokenTree { | |||||||
|                         Text( |                         Text( | ||||||
|                             "", |                             "", | ||||||
|                         ), |                         ), | ||||||
|                         Table( |                         Text( | ||||||
|                             Table { |                             "hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32|284b83c9c7935002391129fd97f43db5d7cc2ba0&location=/mnt/nfs/media", | ||||||
|                                 header: TableRow { |                         ), | ||||||
|                                     raw: "hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32|284b83c9c7935002391129fd97f43db5d7cc2ba0&location=/mnt/nfs/media", |                         Text( | ||||||
|                                     columns: [ |                             "```", | ||||||
|                                         "hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32", |  | ||||||
|                                         "284b83c9c7935002391129fd97f43db5d7cc2ba0&location=/mnt/nfs/media", |  | ||||||
|                                     ], |  | ||||||
|                                 }, |  | ||||||
|                                 split: "```", |  | ||||||
|                                 rows: [], |  | ||||||
|                             }, |  | ||||||
|                         ), |                         ), | ||||||
|                         Text( |                         Text( | ||||||
|                             "", |                             "", | ||||||
|                         ), |                         ), | ||||||
|                         Table( |                         Text( | ||||||
|                             Table { |                             "`hashes` can contain multiple hashes separated by `|` or set to `all`", | ||||||
|                                 header: TableRow { |                         ), | ||||||
|                                     raw: "`hashes` can contain multiple hashes separated by `|` or set to `all`", |                         Text( | ||||||
|                                     columns: [ |                             "`location` is the location to download the torrent to. If the location doesn't exist, the torrent's location is unchanged.", | ||||||
|                                         "hashes can contain multiple hashes separated by", |  | ||||||
|                                         "or set to all", |  | ||||||
|                                     ], |  | ||||||
|                                 }, |  | ||||||
|                                 split: "`location` is the location to download the torrent to. If the location doesn't exist, the torrent's location is unchanged.", |  | ||||||
|                                 rows: [], |  | ||||||
|                             }, |  | ||||||
|                         ), |                         ), | ||||||
|                         Text( |                         Text( | ||||||
|                             "", |                             "", | ||||||
| @ -10755,34 +10611,20 @@ TokenTree { | |||||||
|                         Text( |                         Text( | ||||||
|                             "", |                             "", | ||||||
|                         ), |                         ), | ||||||
|                         Table( |                         Text( | ||||||
|                             Table { |                             "hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32|284b83c9c7935002391129fd97f43db5d7cc2ba0&category=CategoryName", | ||||||
|                                 header: TableRow { |                         ), | ||||||
|                                     raw: "hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32|284b83c9c7935002391129fd97f43db5d7cc2ba0&category=CategoryName", |                         Text( | ||||||
|                                     columns: [ |                             "```", | ||||||
|                                         "hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32", |  | ||||||
|                                         "284b83c9c7935002391129fd97f43db5d7cc2ba0&category=CategoryName", |  | ||||||
|                                     ], |  | ||||||
|                                 }, |  | ||||||
|                                 split: "```", |  | ||||||
|                                 rows: [], |  | ||||||
|                             }, |  | ||||||
|                         ), |                         ), | ||||||
|                         Text( |                         Text( | ||||||
|                             "", |                             "", | ||||||
|                         ), |                         ), | ||||||
|                         Table( |                         Text( | ||||||
|                             Table { |                             "`hashes` can contain multiple hashes separated by `|` or set to `all`", | ||||||
|                                 header: TableRow { |                         ), | ||||||
|                                     raw: "`hashes` can contain multiple hashes separated by `|` or set to `all`", |                         Text( | ||||||
|                                     columns: [ |                             "", | ||||||
|                                         "hashes can contain multiple hashes separated by", |  | ||||||
|                                         "or set to all", |  | ||||||
|                                     ], |  | ||||||
|                                 }, |  | ||||||
|                                 split: "", |  | ||||||
|                                 rows: [], |  | ||||||
|                             }, |  | ||||||
|                         ), |                         ), | ||||||
|                         Text( |                         Text( | ||||||
|                             "`category` is the torrent category you want to set.", |                             "`category` is the torrent category you want to set.", | ||||||
| @ -11255,34 +11097,20 @@ TokenTree { | |||||||
|                         Text( |                         Text( | ||||||
|                             "", |                             "", | ||||||
|                         ), |                         ), | ||||||
|                         Table( |                         Text( | ||||||
|                             Table { |                             "hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32|284b83c9c7935002391129fd97f43db5d7cc2ba0&tags=TagName1,TagName2", | ||||||
|                                 header: TableRow { |                         ), | ||||||
|                                     raw: "hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32|284b83c9c7935002391129fd97f43db5d7cc2ba0&tags=TagName1,TagName2", |                         Text( | ||||||
|                                     columns: [ |                             "```", | ||||||
|                                         "hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32", |  | ||||||
|                                         "284b83c9c7935002391129fd97f43db5d7cc2ba0&tags=TagName1,TagName2", |  | ||||||
|                                     ], |  | ||||||
|                                 }, |  | ||||||
|                                 split: "```", |  | ||||||
|                                 rows: [], |  | ||||||
|                             }, |  | ||||||
|                         ), |                         ), | ||||||
|                         Text( |                         Text( | ||||||
|                             "", |                             "", | ||||||
|                         ), |                         ), | ||||||
|                         Table( |                         Text( | ||||||
|                             Table { |                             "`hashes` can contain multiple hashes separated by `|` or set to `all`", | ||||||
|                                 header: TableRow { |                         ), | ||||||
|                                     raw: "`hashes` can contain multiple hashes separated by `|` or set to `all`", |                         Text( | ||||||
|                                     columns: [ |                             "", | ||||||
|                                         "hashes can contain multiple hashes separated by", |  | ||||||
|                                         "or set to all", |  | ||||||
|                                     ], |  | ||||||
|                                 }, |  | ||||||
|                                 split: "", |  | ||||||
|                                 rows: [], |  | ||||||
|                             }, |  | ||||||
|                         ), |                         ), | ||||||
|                         Text( |                         Text( | ||||||
|                             "`tags` is the list of tags you want to add to passed torrents.", |                             "`tags` is the list of tags you want to add to passed torrents.", | ||||||
| @ -11367,34 +11195,20 @@ TokenTree { | |||||||
|                         Text( |                         Text( | ||||||
|                             "", |                             "", | ||||||
|                         ), |                         ), | ||||||
|                         Table( |                         Text( | ||||||
|                             Table { |                             "hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32|284b83c9c7935002391129fd97f43db5d7cc2ba0&tags=TagName1,TagName2", | ||||||
|                                 header: TableRow { |                         ), | ||||||
|                                     raw: "hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32|284b83c9c7935002391129fd97f43db5d7cc2ba0&tags=TagName1,TagName2", |                         Text( | ||||||
|                                     columns: [ |                             "```", | ||||||
|                                         "hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32", |  | ||||||
|                                         "284b83c9c7935002391129fd97f43db5d7cc2ba0&tags=TagName1,TagName2", |  | ||||||
|                                     ], |  | ||||||
|                                 }, |  | ||||||
|                                 split: "```", |  | ||||||
|                                 rows: [], |  | ||||||
|                             }, |  | ||||||
|                         ), |                         ), | ||||||
|                         Text( |                         Text( | ||||||
|                             "", |                             "", | ||||||
|                         ), |                         ), | ||||||
|                         Table( |                         Text( | ||||||
|                             Table { |                             "`hashes` can contain multiple hashes separated by `|` or set to `all`", | ||||||
|                                 header: TableRow { |                         ), | ||||||
|                                     raw: "`hashes` can contain multiple hashes separated by `|` or set to `all`", |                         Text( | ||||||
|                                     columns: [ |                             "", | ||||||
|                                         "hashes can contain multiple hashes separated by", |  | ||||||
|                                         "or set to all", |  | ||||||
|                                     ], |  | ||||||
|                                 }, |  | ||||||
|                                 split: "", |  | ||||||
|                                 rows: [], |  | ||||||
|                             }, |  | ||||||
|                         ), |                         ), | ||||||
|                         Text( |                         Text( | ||||||
|                             "`tags` is the list of tags you want to remove from passed torrents.", |                             "`tags` is the list of tags you want to remove from passed torrents.", | ||||||
| @ -11740,34 +11554,20 @@ TokenTree { | |||||||
|                         Text( |                         Text( | ||||||
|                             "", |                             "", | ||||||
|                         ), |                         ), | ||||||
|                         Table( |                         Text( | ||||||
|                             Table { |                             "hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32|284b83c9c7935002391129fd97f43db5d7cc2ba0&enable=true", | ||||||
|                                 header: TableRow { |                         ), | ||||||
|                                     raw: "hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32|284b83c9c7935002391129fd97f43db5d7cc2ba0&enable=true", |                         Text( | ||||||
|                                     columns: [ |                             "```", | ||||||
|                                         "hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32", |  | ||||||
|                                         "284b83c9c7935002391129fd97f43db5d7cc2ba0&enable=true", |  | ||||||
|                                     ], |  | ||||||
|                                 }, |  | ||||||
|                                 split: "```", |  | ||||||
|                                 rows: [], |  | ||||||
|                             }, |  | ||||||
|                         ), |                         ), | ||||||
|                         Text( |                         Text( | ||||||
|                             "", |                             "", | ||||||
|                         ), |                         ), | ||||||
|                         Table( |                         Text( | ||||||
|                             Table { |                             "`hashes` can contain multiple hashes separated by `|` or set to `all`", | ||||||
|                                 header: TableRow { |                         ), | ||||||
|                                     raw: "`hashes` can contain multiple hashes separated by `|` or set to `all`", |                         Text( | ||||||
|                                     columns: [ |                             "`enable` is a boolean, affects the torrents listed in `hashes`, default is `false`", | ||||||
|                                         "hashes can contain multiple hashes separated by", |  | ||||||
|                                         "or set to all", |  | ||||||
|                                     ], |  | ||||||
|                                 }, |  | ||||||
|                                 split: "`enable` is a boolean, affects the torrents listed in `hashes`, default is `false`", |  | ||||||
|                                 rows: [], |  | ||||||
|                             }, |  | ||||||
|                         ), |                         ), | ||||||
|                         Text( |                         Text( | ||||||
|                             "", |                             "", | ||||||
| @ -11867,18 +11667,11 @@ TokenTree { | |||||||
|                         Text( |                         Text( | ||||||
|                             "```http", |                             "```http", | ||||||
|                         ), |                         ), | ||||||
|                         Table( |                         Text( | ||||||
|                             Table { |                             "/api/v2/torrents/toggleSequentialDownload?hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32|54eddd830a5b58480a6143d616a97e3a6c23c439", | ||||||
|                                 header: TableRow { |                         ), | ||||||
|                                     raw: "/api/v2/torrents/toggleSequentialDownload?hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32|54eddd830a5b58480a6143d616a97e3a6c23c439", |                         Text( | ||||||
|                                     columns: [ |                             "```", | ||||||
|                                         "/api/v2/torrents/toggleSequentialDownload?hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32", |  | ||||||
|                                         "54eddd830a5b58480a6143d616a97e3a6c23c439", |  | ||||||
|                                     ], |  | ||||||
|                                 }, |  | ||||||
|                                 split: "```", |  | ||||||
|                                 rows: [], |  | ||||||
|                             }, |  | ||||||
|                         ), |                         ), | ||||||
|                         Text( |                         Text( | ||||||
|                             "", |                             "", | ||||||
| @ -11978,18 +11771,11 @@ TokenTree { | |||||||
|                         Text( |                         Text( | ||||||
|                             "```http", |                             "```http", | ||||||
|                         ), |                         ), | ||||||
|                         Table( |                         Text( | ||||||
|                             Table { |                             "/api/v2/torrents/toggleFirstLastPiecePrio?hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32|54eddd830a5b58480a6143d616a97e3a6c23c439", | ||||||
|                                 header: TableRow { |                         ), | ||||||
|                                     raw: "/api/v2/torrents/toggleFirstLastPiecePrio?hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32|54eddd830a5b58480a6143d616a97e3a6c23c439", |                         Text( | ||||||
|                                     columns: [ |                             "```", | ||||||
|                                         "/api/v2/torrents/toggleFirstLastPiecePrio?hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32", |  | ||||||
|                                         "54eddd830a5b58480a6143d616a97e3a6c23c439", |  | ||||||
|                                     ], |  | ||||||
|                                 }, |  | ||||||
|                                 split: "```", |  | ||||||
|                                 rows: [], |  | ||||||
|                             }, |  | ||||||
|                         ), |                         ), | ||||||
|                         Text( |                         Text( | ||||||
|                             "", |                             "", | ||||||
| @ -12080,18 +11866,11 @@ TokenTree { | |||||||
|                         Text( |                         Text( | ||||||
|                             "", |                             "", | ||||||
|                         ), |                         ), | ||||||
|                         Table( |                         Text( | ||||||
|                             Table { |                             "`hashes` can contain multiple hashes separated by `|` or set to `all`", | ||||||
|                                 header: TableRow { |                         ), | ||||||
|                                     raw: "`hashes` can contain multiple hashes separated by `|` or set to `all`", |                         Text( | ||||||
|                                     columns: [ |                             "`value` is a boolean, affects the torrents listed in `hashes`, default is `false`", | ||||||
|                                         "hashes can contain multiple hashes separated by", |  | ||||||
|                                         "or set to all", |  | ||||||
|                                     ], |  | ||||||
|                                 }, |  | ||||||
|                                 split: "`value` is a boolean, affects the torrents listed in `hashes`, default is `false`", |  | ||||||
|                                 rows: [], |  | ||||||
|                             }, |  | ||||||
|                         ), |                         ), | ||||||
|                         Text( |                         Text( | ||||||
|                             "", |                             "", | ||||||
| @ -12182,18 +11961,11 @@ TokenTree { | |||||||
|                         Text( |                         Text( | ||||||
|                             "", |                             "", | ||||||
|                         ), |                         ), | ||||||
|                         Table( |                         Text( | ||||||
|                             Table { |                             "`hashes` can contain multiple hashes separated by `|` or set to `all`", | ||||||
|                                 header: TableRow { |                         ), | ||||||
|                                     raw: "`hashes` can contain multiple hashes separated by `|` or set to `all`", |                         Text( | ||||||
|                                     columns: [ |                             "`value` is a boolean, affects the torrents listed in `hashes`, default is `false`", | ||||||
|                                         "hashes can contain multiple hashes separated by", |  | ||||||
|                                         "or set to all", |  | ||||||
|                                     ], |  | ||||||
|                                 }, |  | ||||||
|                                 split: "`value` is a boolean, affects the torrents listed in `hashes`, default is `false`", |  | ||||||
|                                 rows: [], |  | ||||||
|                             }, |  | ||||||
|                         ), |                         ), | ||||||
|                         Text( |                         Text( | ||||||
|                             "", |                             "", | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user