fix: Marked the Season.statistics field as Option so that a panic does not happen for outdated Sonarr data. This resolves #35
This commit is contained in:
1 parent
6d38bc5e1d
commit
cab06fe43f
6 files changed
+50
-24
No files matched your search
@@ -288,7 +288,7 @@ pub struct Season {
|
||||
#[serde(deserialize_with = "super::from_i64")]
|
||||
pub season_number: i64,
|
||||
pub monitored: bool,
|
||||
pub statistics: SeasonStatistics,
|
||||
pub statistics: Option<SeasonStatistics>,
|
||||
}
|
||||
|
||||
#[derive(Derivative, Serialize, Deserialize, Debug, Default, Clone, PartialEq)]
|
||||
|
||||
Reference in new issue
Block a user