Add collections to verses and make lists optional

This commit is contained in:
2025-06-06 22:10:42 -06:00
parent ced1fe8194
commit ba9c3fa03d
6 changed files with 108 additions and 189 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "flix-cli"
version = "0.0.7"
version = "0.0.8"
categories = ["command-line-utilities"]
description = "CLI for interacting with flix media"
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "flix"
version = "0.0.7"
version = "0.0.8"
categories = []
description = "Types for storing persistent data about media"
+7 -1
View File
@@ -1,5 +1,5 @@
#[cfg(feature = "tmdb")]
use flix_tmdb::model::{MovieId, ShowId};
use flix_tmdb::model::{CollectionId, MovieId, ShowId};
/// A Verse container
#[derive(Debug, serde::Serialize, serde::Deserialize)]
@@ -25,10 +25,16 @@ pub struct GenericVerse {
#[cfg(feature = "tmdb")]
#[derive(Debug, serde::Serialize, serde::Deserialize)]
pub struct TmdbVerse {
/// The list of collection TMDB IDs in the verse
#[serde(default)]
pub collections: Vec<CollectionId>,
/// The list of movie TMDB IDs in the verse
#[serde(default)]
pub movies: Vec<MovieId>,
/// The list of show TMDB IDs in the verse
#[serde(default)]
pub shows: Vec<ShowId>,
/// The list of sub-verse names
#[serde(default)]
pub verses: Vec<String>,
}
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "flix-tmdb"
version = "0.0.7"
version = "0.0.8"
categories = []
description = "Clients and models for fetching data from TMDB"