fix: Modified the Sonarr DownloadRecord so that the episode_id is optional to prevent crashes for weird downloads

This commit is contained in:
Dark-Alex-17 committed 2025-03-01 14:50:20 -07:00
1 parent 58723cf3e8
commit 847de75713
7 files changed
+52 -18

No files matched your search

+1 -2
View File
@@ -112,8 +112,7 @@ pub struct DownloadRecord {
pub status: DownloadStatus,
#[serde(deserialize_with = "super::from_i64")]
pub id: i64,
#[serde(deserialize_with = "super::from_i64")]
pub episode_id: i64,
pub episode_id: Option<Number>,
#[serde(deserialize_with = "super::from_f64")]
pub size: f64,
#[serde(deserialize_with = "super::from_f64")]