Compare commits
No commits in common. "45679ec98ac5c242baf36b4607d76abc23de07a1" and "ff413f73475a5000d7c2dedfabb3f716024d0ace" have entirely different histories.
45679ec98a
...
ff413f7347
2 changed files with 9 additions and 9 deletions
16
src/data.rs
16
src/data.rs
|
@ -126,21 +126,21 @@ pub struct SearchParameters {
|
|||
/// What type of search this is
|
||||
///
|
||||
/// Search types: `search`, `tv-search`, `movie-search`, `audio-search`, `book-search`
|
||||
pub search_type: String,
|
||||
pub(crate) search_type: String,
|
||||
/// The text query for the search
|
||||
pub q: Option<String>,
|
||||
pub(crate) q: Option<String>,
|
||||
/// The apikey, for authentication
|
||||
pub apikey: Option<String>,
|
||||
pub(crate) apikey: Option<String>,
|
||||
/// A [`Vec`] containing the numeric category IDs to be included in the search results
|
||||
pub categories: Option<Vec<u32>>,
|
||||
pub(crate) categories: Option<Vec<u32>>,
|
||||
/// A [`Vec`] containing the extended attribute names to be included in the search results
|
||||
pub attributes: Option<Vec<String>>,
|
||||
pub(crate) attributes: Option<Vec<String>>,
|
||||
/// Whether *all* extended attributes should be included in the search results; overrules `attributes`
|
||||
pub extended_attrs: Option<bool>,
|
||||
pub(crate) extended_attrs: Option<bool>,
|
||||
/// How many items to skip/offset by in the results.
|
||||
pub offset: Option<u32>,
|
||||
pub(crate) offset: Option<u32>,
|
||||
/// The maximum number of items to return - also limited to whatever `limits` is in [`Caps`]
|
||||
pub limit: u32,
|
||||
pub(crate) limit: u32,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
//! Notes regarding the usage of torznab-tooolkit, and its implementation of Torznab
|
||||
//!
|
||||
//! - Please implement whatever attributes for torrents you can whenever possible to improve search results; particularly, `season`, `ep`, and `*id` fields are recommended, besides those listed in [`Torrent`]
|
||||
//! - Please implement whatever attributes for torrents you can whenever possible to improve search results; particularly, `season`, `ep`, and `*id` fields are recommended, besides those listed in [``]
|
||||
//! - Potential attributes are listed [here](https://torznab.github.io/spec-1.3-draft/torznab/Specification-v1.3.html#predefined-attributes)
|
||||
//! - Because the behavior of `length` is ambiguous, torznab-toolkit just sets it to 0; the size is just specified by the `size` attribute
|
||||
//! - See [here](https://torznab.github.io/spec-1.3-draft/revisions/1.0-Torznab-Torrent-Support.html) for details
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue