You've already forked flix
Strip derivable metadata
This commit is contained in:
Generated
+2
-2
@@ -214,7 +214,7 @@ checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
|
||||
|
||||
[[package]]
|
||||
name = "flix"
|
||||
version = "0.0.1"
|
||||
version = "0.0.2"
|
||||
dependencies = [
|
||||
"chrono",
|
||||
"flix-tmdb",
|
||||
@@ -224,7 +224,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "flix-cli"
|
||||
version = "0.0.1"
|
||||
version = "0.0.2"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"clap",
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@ overflow-checks = true
|
||||
strip = "debuginfo"
|
||||
|
||||
[workspace.dependencies]
|
||||
flix = { path = "crates/flix", version = "=0.0.1", default-features = false }
|
||||
flix = { path = "crates/flix", version = "=0.0.2", default-features = false }
|
||||
flix-tmdb = { path = "crates/tmdb", version = "=0.0.2", default-features = false }
|
||||
|
||||
anyhow = { version = "^1", default-features = false }
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "flix-cli"
|
||||
version = "0.0.1"
|
||||
version = "0.0.2"
|
||||
|
||||
categories = ["command-line-utilities"]
|
||||
description = "CLI for interacting with flix media"
|
||||
|
||||
@@ -50,7 +50,6 @@ impl TmdbObject {
|
||||
},
|
||||
tmdb: Some(TmdbMovie {
|
||||
id: tmdb.id,
|
||||
collection: tmdb.collection.map(|c| c.id),
|
||||
genres: tmdb.genres.iter().map(|g| g.id).collect(),
|
||||
}),
|
||||
})?,
|
||||
@@ -67,7 +66,6 @@ impl TmdbObject {
|
||||
})?,
|
||||
TmdbObject::Season(tmdb) => toml::to_string(&Season {
|
||||
season: GenericSeason {
|
||||
number: tmdb.season_number,
|
||||
name: tmdb.name,
|
||||
overview: tmdb.overview,
|
||||
air_date: tmdb.air_date,
|
||||
@@ -75,7 +73,6 @@ impl TmdbObject {
|
||||
})?,
|
||||
TmdbObject::Episode(tmdb) => toml::to_string(&Episode {
|
||||
episode: GenericEpisode {
|
||||
number: tmdb.episode_number,
|
||||
name: tmdb.name,
|
||||
overview: tmdb.overview,
|
||||
air_date: tmdb.air_date,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "flix"
|
||||
version = "0.0.1"
|
||||
version = "0.0.2"
|
||||
|
||||
categories = []
|
||||
description = "Types for storing persistent data about media"
|
||||
|
||||
@@ -10,8 +10,6 @@ pub struct Episode {
|
||||
/// The generic episode data
|
||||
#[derive(Debug, serde::Serialize, serde::Deserialize)]
|
||||
pub struct GenericEpisode {
|
||||
/// The episode's number
|
||||
pub number: i32,
|
||||
/// The episode's name
|
||||
pub name: String,
|
||||
/// The episode's overview
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#[cfg(feature = "tmdb")]
|
||||
use flix_tmdb::model::{CollectionId, MovieGenreId, MovieId};
|
||||
use flix_tmdb::model::{MovieGenreId, MovieId};
|
||||
|
||||
use chrono::NaiveDate;
|
||||
|
||||
@@ -31,8 +31,6 @@ pub struct GenericMovie {
|
||||
pub struct TmdbMovie {
|
||||
/// The movie's TMDB ID
|
||||
pub id: MovieId,
|
||||
/// The movie's collection's TMDB ID
|
||||
pub collection: Option<CollectionId>,
|
||||
/// The list of genre TMDB IDs that the movie is associated with
|
||||
pub genres: Vec<MovieGenreId>,
|
||||
}
|
||||
|
||||
@@ -10,8 +10,6 @@ pub struct Season {
|
||||
/// The generic season data
|
||||
#[derive(Debug, serde::Serialize, serde::Deserialize)]
|
||||
pub struct GenericSeason {
|
||||
/// The season's number
|
||||
pub number: i32,
|
||||
/// The season's name
|
||||
pub name: String,
|
||||
/// The season's overview
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# flix
|
||||
# flix-tmdb
|
||||
|
||||
[](https://crates.io/crates/flix-tmdb)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user