Completed unit tests for all network modules and fixed a couple of bugs. On to the UI!

This commit is contained in:
2023-08-08 10:50:05 -06:00
parent 15d29e0362
commit 83446b32d3
2 changed files with 499 additions and 63 deletions
+3 -8
View File
@@ -22,7 +22,7 @@ pub struct SystemStatus {
pub start_time: DateTime<Utc>,
}
#[derive(Deserialize, Debug, Clone)]
#[derive(Deserialize, Debug, Clone, Eq, PartialEq)]
#[serde(rename_all = "camelCase")]
pub struct RootFolder {
pub path: String,
@@ -94,7 +94,7 @@ pub struct MovieFile {
pub relative_path: String,
pub path: String,
pub date_added: DateTime<Utc>,
pub media_info: MediaInfo,
pub media_info: Option<MediaInfo>,
}
#[derive(Deserialize, Derivative, Debug, Clone, PartialEq, Eq)]
@@ -173,7 +173,7 @@ pub struct QualityProfile {
#[serde(rename_all = "camelCase")]
pub struct MovieHistoryItem {
pub source_title: HorizontallyScrollableText,
pub quality: QualityHistory,
pub quality: QualityWrapper,
pub languages: Vec<Language>,
pub date: DateTime<Utc>,
pub event_type: String,
@@ -184,11 +184,6 @@ pub struct Language {
pub name: String,
}
#[derive(Deserialize, Default, Debug, Clone, PartialEq, Eq)]
pub struct QualityHistory {
pub quality: Quality,
}
#[derive(Deserialize, Default, Debug, Clone, PartialEq, Eq)]
pub struct Quality {
pub name: String,