From 0a6ffe67553edf9ca7a8c9f8d6993ea7d7ea0ad4 Mon Sep 17 00:00:00 2001 From: askiiart Date: Mon, 2 Dec 2024 10:02:46 -0600 Subject: [PATCH 1/2] fix SearchParameters fields being private --- src/data.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/data.rs b/src/data.rs index 3dd3be1..f7504c1 100644 --- a/src/data.rs +++ b/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(crate) search_type: String, + pub search_type: String, /// The text query for the search - pub(crate) q: Option, + pub q: Option, /// The apikey, for authentication - pub(crate) apikey: Option, + pub apikey: Option, /// A [`Vec`] containing the numeric category IDs to be included in the search results - pub(crate) categories: Option>, + pub categories: Option>, /// A [`Vec`] containing the extended attribute names to be included in the search results - pub(crate) attributes: Option>, + pub attributes: Option>, /// Whether *all* extended attributes should be included in the search results; overrules `attributes` - pub(crate) extended_attrs: Option, + pub extended_attrs: Option, /// How many items to skip/offset by in the results. - pub(crate) offset: Option, + pub offset: Option, /// The maximum number of items to return - also limited to whatever `limits` is in [`Caps`] - pub(crate) limit: u32, + pub limit: u32, } #[derive(Debug, Clone, PartialEq, Eq)] From 45679ec98ac5c242baf36b4607d76abc23de07a1 Mon Sep 17 00:00:00 2001 From: askiiart Date: Mon, 2 Dec 2024 10:04:20 -0600 Subject: [PATCH 2/2] docs: fix missing thing --- src/notes/notes.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/notes/notes.rs b/src/notes/notes.rs index 63f5396..c5a4e35 100644 --- a/src/notes/notes.rs +++ b/src/notes/notes.rs @@ -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 [``] +//! - 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`] //! - 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