Fix mapping of notes

Signed-off-by: trivernis <trivernis@protonmail.com>
main
trivernis 2 years ago
parent d01e71527e
commit c6c127edbb
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

2
Cargo.lock generated

@ -4,7 +4,7 @@ version = 3
[[package]]
name = "animethemes-rs"
version = "0.4.1"
version = "0.4.2"
dependencies = [
"reqwest",
"serde",

@ -1,6 +1,6 @@
[package]
name = "animethemes-rs"
version = "0.4.2"
version = "0.4.3"
authors = ["trivernis <trivernis@protonmail.com>"]
edition = "2021"
readme = "README.md"

@ -33,6 +33,7 @@ pub enum AnimeSeason {
Summer,
Fall,
}
#[derive(Debug, Clone, Deserialize)]
pub struct AnimeSynonym {
#[serde(flatten)]
@ -93,7 +94,7 @@ pub struct ThemeEntry {
pub episodes: String,
pub nsfw: bool,
pub spoiler: bool,
pub notes: String,
pub notes: Option<String>,
pub videos: Option<Vec<Video>>,
#[serde(alias = "animetheme")]
pub theme: Option<Theme>,

@ -6,7 +6,7 @@ async fn it_searches() {
let client = AnimeThemesClient::default();
let result = client
.search(
"vivy",
"paripi",
&[],
SearchIncludes {
anime: AnimeInclude::default().images().series(),

Loading…
Cancel
Save