diff --git a/README.md b/README.md index d50544c..1dc87eb 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,8 @@ A Rust library for interacting with qBittorrent's Web API. Implemented according to [WebUI API (qBittorrent 4.1)](https://github.com/qbittorrent/qBittorrent/wiki/WebUI-API-(qBittorrent-4.1)). +Since the official documentation often lags behind releases, this crate also includes support for newer, undocumented features to stay current. The implementation is based on the API behavior of qBittorrent v5.1.2. +For the most accurate and complete list of supported API methods and model fields, please refer to this [crate's documentation on docs.rs](https://docs.rs/qbit-rs/latest/qbit_rs/). ## Usage diff --git a/src/model/torrent.rs b/src/model/torrent.rs index 8801345..0725a3d 100644 --- a/src/model/torrent.rs +++ b/src/model/torrent.rs @@ -35,6 +35,8 @@ pub struct Torrent { /// Category of the torrent pub category: Option, /// Amount of transfer data completed (bytes) + pub comment: Option, + /// Comment for torrent pub completed: Option, /// Time (Unix Epoch) when the torrent completed pub completion_on: Option, @@ -45,6 +47,8 @@ pub struct Torrent { pub dl_limit: Option, /// Torrent download speed (bytes/s) pub dlspeed: Option, + /// Torrent download path + pub download_path: Option, /// Amount of data downloaded pub downloaded: Option, /// Amount of data downloaded this session @@ -55,12 +59,22 @@ pub struct Torrent { pub f_l_piece_prio: Option, /// True if force start is enabled for this torrent pub force_start: Option, + /// Whether the torrent has metadata + pub has_metadata: Option, /// Torrent hash pub hash: Option, + /// Inactive seeding time limit + pub inactive_seeding_time_limit: Option, + /// Torrent infohash v1 + pub infohash_v1: Option, + /// Torrent infohash v2 + pub infohash_v2: Option, /// Last time (Unix Epoch) when a chunk was downloaded/uploaded pub last_activity: Option, /// Magnet URI corresponding to this torrent pub magnet_uri: Option, + /// Maximum inactive seeding time + pub max_inactive_seeding_time: Option, /// Maximum share ratio until torrent is stopped from seeding/uploading pub max_ratio: Option, /// Maximum seeding time (seconds) until torrent is stopped from seeding @@ -75,14 +89,22 @@ pub struct Torrent { pub num_leechs: Option, /// Number of seeds connected to pub num_seeds: Option, + /// Torrent popularity + pub popularity: Option, /// Torrent priority. Returns -1 if queuing is disabled or torrent is in /// seed mode pub priority: Option, + /// Whether this torrent is private + pub private: Option, /// Torrent progress (percentage/100) pub progress: Option, /// Torrent share ratio. Max ratio value: 9999. pub ratio: Option, pub ratio_limit: Option, + /// Torrent reannounce interval + pub reannounce: Option, + /// Root folder of the torrent + pub root_path: Option, /// Path where this torrent's data is stored pub save_path: Option, /// Torrent elapsed time while complete (seconds)