Skip to content

Commit

Permalink
Fix: allow custom format scores to be negative
Browse files Browse the repository at this point in the history
  • Loading branch information
cbackas committed Sep 4, 2024
1 parent cf445b5 commit 4486b4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/structs/sonarr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub struct SonarrCustomFormat {
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct SonarrCustomFormatInfo {
#[serde(rename = "customFormatScore")]
pub custom_format_score: Option<u64>,
pub custom_format_score: Option<i64>,
#[serde(rename = "customFormats")]
pub custom_formats: Option<Vec<SonarrCustomFormat>>,
}
Expand Down Expand Up @@ -56,7 +56,7 @@ pub struct SonarrEpisode {
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct SonarrRelease {
#[serde(rename = "customFormatScore")]
pub custom_format_score: Option<u64>,
pub custom_format_score: Option<i64>,
#[serde(rename = "customFormats")]
pub custom_formats: Option<Vec<String>>,
pub indexer: Option<String>,
Expand Down

0 comments on commit 4486b4b

Please sign in to comment.