Skip to content

Commit 4486b4b

Browse files
committed
Fix: allow custom format scores to be negative
1 parent cf445b5 commit 4486b4b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/structs/sonarr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub struct SonarrCustomFormat {
1111
#[derive(Debug, Serialize, Deserialize, Clone)]
1212
pub struct SonarrCustomFormatInfo {
1313
#[serde(rename = "customFormatScore")]
14-
pub custom_format_score: Option<u64>,
14+
pub custom_format_score: Option<i64>,
1515
#[serde(rename = "customFormats")]
1616
pub custom_formats: Option<Vec<SonarrCustomFormat>>,
1717
}
@@ -56,7 +56,7 @@ pub struct SonarrEpisode {
5656
#[derive(Debug, Serialize, Deserialize, Clone)]
5757
pub struct SonarrRelease {
5858
#[serde(rename = "customFormatScore")]
59-
pub custom_format_score: Option<u64>,
59+
pub custom_format_score: Option<i64>,
6060
#[serde(rename = "customFormats")]
6161
pub custom_formats: Option<Vec<String>>,
6262
pub indexer: Option<String>,

0 commit comments

Comments
 (0)