Completed edit movies implementation, cleaned up the Movies table, and fixed a bug when adding a movie from the CollectionDetails screen.

This commit is contained in:
2023-08-08 10:50:05 -06:00
parent d5117fda39
commit 652dc0f2c4
17 changed files with 1787 additions and 223 deletions
+3 -1
View File
@@ -55,6 +55,7 @@ pub struct Movie {
pub tmdb_id: Number,
#[derivative(Default(value = "Number::from(0)"))]
pub quality_profile_id: Number,
pub minimum_availability: MinimumAvailability,
pub certification: Option<String>,
pub ratings: RatingsList,
pub movie_file: Option<MovieFile>,
@@ -312,7 +313,8 @@ pub struct CommandBody {
pub name: String,
}
#[derive(Default, PartialEq, Eq, Clone, Copy, Debug, EnumIter)]
#[derive(Serialize, Deserialize, Default, PartialEq, Eq, Clone, Copy, Debug, EnumIter)]
#[serde(rename_all = "lowercase")]
pub enum MinimumAvailability {
#[default]
Announced,