You've already forked flix
Compare commits
4 Commits
0.0.10
...
508c4ed32f
| Author | SHA1 | Date | |
|---|---|---|---|
|
508c4ed32f
|
|||
|
dd688fdc83
|
|||
|
0d34174a13
|
|||
|
8411c75377
|
Generated
+292
-354
File diff suppressed because it is too large
Load Diff
+9
-10
@@ -35,17 +35,17 @@ overflow-checks = true
|
|||||||
strip = "debuginfo"
|
strip = "debuginfo"
|
||||||
|
|
||||||
[workspace.dependencies]
|
[workspace.dependencies]
|
||||||
flix = { path = "crates/flix", version = "=0.0.10", default-features = false }
|
flix = { path = "crates/flix", version = "=0.0.12", default-features = false }
|
||||||
flix-cli = { path = "crates/cli", version = "=0.0.10", default-features = false }
|
flix-cli = { path = "crates/cli", version = "=0.0.12", default-features = false }
|
||||||
flix-db = { path = "crates/db", version = "=0.0.10", default-features = false }
|
flix-db = { path = "crates/db", version = "=0.0.12", default-features = false }
|
||||||
flix-fs = { path = "crates/fs", version = "=0.0.10", default-features = false }
|
flix-fs = { path = "crates/fs", version = "=0.0.12", default-features = false }
|
||||||
flix-model = { path = "crates/model", version = "=0.0.10", default-features = false }
|
flix-model = { path = "crates/model", version = "=0.0.12", default-features = false }
|
||||||
flix-tmdb = { path = "crates/tmdb", version = "=0.0.10", default-features = false }
|
flix-tmdb = { path = "crates/tmdb", version = "=0.0.12", default-features = false }
|
||||||
|
|
||||||
seamantic = { version = "0.0.6", default-features = false }
|
seamantic = { version = "0.0.9", default-features = false }
|
||||||
|
|
||||||
sea-orm = { version = "2.0.0-rc.7", default-features = false }
|
sea-orm = { version = "2.0.0-rc.16", default-features = false }
|
||||||
sea-orm-migration = { version = "2.0.0-rc.7", default-features = false }
|
sea-orm-migration = { version = "2.0.0-rc.16", default-features = false }
|
||||||
|
|
||||||
anyhow = { version = "^1", default-features = false }
|
anyhow = { version = "^1", default-features = false }
|
||||||
async-stream = { version = "^0.3", default-features = false }
|
async-stream = { version = "^0.3", default-features = false }
|
||||||
@@ -53,7 +53,6 @@ chrono = { version = "^0.4", default-features = false }
|
|||||||
clap = { version = "^4", default-features = false, features = ["std"] }
|
clap = { version = "^4", default-features = false, features = ["std"] }
|
||||||
futures = { version = "^0.3", default-features = false }
|
futures = { version = "^0.3", default-features = false }
|
||||||
governor = { version = "^0.10", default-features = false }
|
governor = { version = "^0.10", default-features = false }
|
||||||
home = { version = "^0.5", default-features = false }
|
|
||||||
nonzero_ext = { version = "^0.3", default-features = false }
|
nonzero_ext = { version = "^0.3", default-features = false }
|
||||||
regex = { version = "^1", default-features = false }
|
regex = { version = "^1", default-features = false }
|
||||||
reqwest = { version = "^0.12", default-features = false }
|
reqwest = { version = "^0.12", default-features = false }
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "flix-cli"
|
name = "flix-cli"
|
||||||
version = "0.0.10"
|
version = "0.0.12"
|
||||||
|
|
||||||
categories = ["command-line-utilities"]
|
categories = ["command-line-utilities"]
|
||||||
description = "CLI for interacting with a flix database"
|
description = "CLI for interacting with a flix database"
|
||||||
@@ -51,7 +51,6 @@ clap = { workspace = true, features = [
|
|||||||
"usage",
|
"usage",
|
||||||
] }
|
] }
|
||||||
futures = { workspace = true }
|
futures = { workspace = true }
|
||||||
home = { workspace = true }
|
|
||||||
sea-orm = { workspace = true, features = ["runtime-tokio"] }
|
sea-orm = { workspace = true, features = ["runtime-tokio"] }
|
||||||
serde = { workspace = true, features = ["derive"] }
|
serde = { workspace = true, features = ["derive"] }
|
||||||
tokio = { workspace = true, features = ["rt", "fs", "macros"] }
|
tokio = { workspace = true, features = ["rt", "fs", "macros"] }
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ impl Cli {
|
|||||||
pub fn config_path(&self) -> PathBuf {
|
pub fn config_path(&self) -> PathBuf {
|
||||||
fn expect_home_dir() -> PathBuf {
|
fn expect_home_dir() -> PathBuf {
|
||||||
#[allow(clippy::expect_used)]
|
#[allow(clippy::expect_used)]
|
||||||
home::home_dir().expect("you do not have a home directory")
|
std::env::home_dir().expect("you do not have a home directory")
|
||||||
}
|
}
|
||||||
|
|
||||||
match self.config.strip_prefix("~/") {
|
match self.config.strip_prefix("~/") {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "flix-db"
|
name = "flix-db"
|
||||||
version = "0.0.10"
|
version = "0.0.12"
|
||||||
|
|
||||||
categories = []
|
categories = []
|
||||||
description = "Types for storing persistent data about media"
|
description = "Types for storing persistent data about media"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ use sea_orm_migration::MigratorTrait as _;
|
|||||||
pub struct Connection(DatabaseConnection);
|
pub struct Connection(DatabaseConnection);
|
||||||
|
|
||||||
impl Connection {
|
impl Connection {
|
||||||
/// Helper function for apllying database migrations while wrapping a
|
/// Helper function for applying database migrations while wrapping a
|
||||||
/// [DatabaseConnection] in a newtype
|
/// [DatabaseConnection] in a newtype
|
||||||
pub async fn try_from(database: DatabaseConnection) -> Result<Self, DbErr> {
|
pub async fn try_from(database: DatabaseConnection) -> Result<Self, DbErr> {
|
||||||
crate::migration::Migrator::up(&database, None).await?;
|
crate::migration::Migrator::up(&database, None).await?;
|
||||||
|
|||||||
@@ -53,9 +53,9 @@ pub enum Relation {
|
|||||||
Library,
|
Library,
|
||||||
/// The media info for this episode
|
/// The media info for this episode
|
||||||
#[sea_orm(
|
#[sea_orm(
|
||||||
belongs_to = "super::super::info::seasons::Entity",
|
belongs_to = "super::super::info::episodes::Entity",
|
||||||
from = "(Column::Show, Column::Season)",
|
from = "(Column::Show, Column::Season, Column::Episode)",
|
||||||
to = "(super::super::info::seasons::Column::Show, super::super::info::seasons::Column::Season)",
|
to = "(super::super::info::episodes::Column::Show, super::super::info::episodes::Column::Season, super::super::info::episodes::Column::Episode)",
|
||||||
on_update = "Cascade",
|
on_update = "Cascade",
|
||||||
on_delete = "Cascade"
|
on_delete = "Cascade"
|
||||||
)]
|
)]
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
use flix_model::id::CollectionId;
|
use flix_model::id::CollectionId;
|
||||||
|
|
||||||
use sea_orm::{
|
use sea_orm::{
|
||||||
ActiveModelBehavior, DeriveEntityModel, DerivePrimaryKey, DeriveRelation, EnumIter,
|
ActiveModelBehavior, DeriveEntityModel, DerivePrimaryKey, DeriveRelation, EntityTrait,
|
||||||
PrimaryKeyTrait,
|
EnumIter, PrimaryKeyTrait,
|
||||||
};
|
};
|
||||||
|
|
||||||
/// The database representation of a flix collection
|
/// The database representation of a flix collection
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ use flix_model::id::MovieId;
|
|||||||
|
|
||||||
use chrono::NaiveDate;
|
use chrono::NaiveDate;
|
||||||
use sea_orm::{
|
use sea_orm::{
|
||||||
ActiveModelBehavior, DeriveEntityModel, DerivePrimaryKey, DeriveRelation, EnumIter,
|
ActiveModelBehavior, DeriveEntityModel, DerivePrimaryKey, DeriveRelation, EntityTrait,
|
||||||
PrimaryKeyTrait,
|
EnumIter, PrimaryKeyTrait,
|
||||||
};
|
};
|
||||||
|
|
||||||
/// The database representation of a flix movie
|
/// The database representation of a flix movie
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ use seamantic::model::duration::Seconds;
|
|||||||
|
|
||||||
use chrono::NaiveDate;
|
use chrono::NaiveDate;
|
||||||
use sea_orm::{
|
use sea_orm::{
|
||||||
ActiveModelBehavior, DeriveEntityModel, DerivePrimaryKey, DeriveRelation, EnumIter,
|
ActiveModelBehavior, DeriveEntityModel, DerivePrimaryKey, DeriveRelation, EntityTrait,
|
||||||
PrimaryKeyTrait,
|
EnumIter, PrimaryKeyTrait,
|
||||||
};
|
};
|
||||||
|
|
||||||
/// The database representation of a tmdb episode
|
/// The database representation of a tmdb episode
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
use flix_model::id::{CollectionId, RawId};
|
use flix_model::id::{CollectionId, RawId};
|
||||||
|
|
||||||
use sea_orm::{
|
use sea_orm::{
|
||||||
ActiveModelBehavior, DeriveEntityModel, DerivePrimaryKey, DeriveRelation, EnumIter,
|
ActiveModelBehavior, DeriveEntityModel, DerivePrimaryKey, DeriveRelation, EntityTrait,
|
||||||
PrimaryKeyTrait,
|
EnumIter, PrimaryKeyTrait,
|
||||||
};
|
};
|
||||||
|
|
||||||
/// The database representation of a watched movie
|
/// The database representation of a watched movie
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ use flix_model::numbers::{EpisodeNumber, SeasonNumber};
|
|||||||
|
|
||||||
use chrono::NaiveDate;
|
use chrono::NaiveDate;
|
||||||
use sea_orm::{
|
use sea_orm::{
|
||||||
ActiveModelBehavior, DeriveEntityModel, DerivePrimaryKey, DeriveRelation, EnumIter,
|
ActiveModelBehavior, DeriveEntityModel, DerivePrimaryKey, DeriveRelation, EntityTrait,
|
||||||
PrimaryKeyTrait,
|
EnumIter, PrimaryKeyTrait,
|
||||||
};
|
};
|
||||||
|
|
||||||
/// The database representation of a watched movie
|
/// The database representation of a watched movie
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ use flix_model::id::{MovieId, RawId};
|
|||||||
|
|
||||||
use chrono::NaiveDate;
|
use chrono::NaiveDate;
|
||||||
use sea_orm::{
|
use sea_orm::{
|
||||||
ActiveModelBehavior, DeriveEntityModel, DerivePrimaryKey, DeriveRelation, EnumIter,
|
ActiveModelBehavior, DeriveEntityModel, DerivePrimaryKey, DeriveRelation, EntityTrait,
|
||||||
PrimaryKeyTrait,
|
EnumIter, PrimaryKeyTrait,
|
||||||
};
|
};
|
||||||
|
|
||||||
/// The database representation of a watched movie
|
/// The database representation of a watched movie
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ use flix_model::numbers::SeasonNumber;
|
|||||||
|
|
||||||
use chrono::NaiveDate;
|
use chrono::NaiveDate;
|
||||||
use sea_orm::{
|
use sea_orm::{
|
||||||
ActiveModelBehavior, DeriveEntityModel, DerivePrimaryKey, DeriveRelation, EnumIter,
|
ActiveModelBehavior, DeriveEntityModel, DerivePrimaryKey, DeriveRelation, EntityTrait,
|
||||||
PrimaryKeyTrait,
|
EnumIter, PrimaryKeyTrait,
|
||||||
};
|
};
|
||||||
|
|
||||||
/// The database representation of a watched movie
|
/// The database representation of a watched movie
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ use flix_model::id::{RawId, ShowId};
|
|||||||
|
|
||||||
use chrono::NaiveDate;
|
use chrono::NaiveDate;
|
||||||
use sea_orm::{
|
use sea_orm::{
|
||||||
ActiveModelBehavior, DeriveEntityModel, DerivePrimaryKey, DeriveRelation, EnumIter,
|
ActiveModelBehavior, DeriveEntityModel, DerivePrimaryKey, DeriveRelation, EntityTrait,
|
||||||
PrimaryKeyTrait,
|
EnumIter, PrimaryKeyTrait,
|
||||||
};
|
};
|
||||||
|
|
||||||
/// The database representation of a watched movie
|
/// The database representation of a watched movie
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "flix"
|
name = "flix"
|
||||||
version = "0.0.10"
|
version = "0.0.12"
|
||||||
|
|
||||||
categories = []
|
categories = []
|
||||||
description = "Mechanisms for interacting with flix media"
|
description = "Mechanisms for interacting with flix media"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "flix-fs"
|
name = "flix-fs"
|
||||||
version = "0.0.10"
|
version = "0.0.12"
|
||||||
|
|
||||||
categories = []
|
categories = []
|
||||||
description = "Filesystem scanner for flix media"
|
description = "Filesystem scanner for flix media"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "flix-model"
|
name = "flix-model"
|
||||||
version = "0.0.10"
|
version = "0.0.12"
|
||||||
|
|
||||||
categories = []
|
categories = []
|
||||||
description = "Core types for flix data"
|
description = "Core types for flix data"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "flix-tmdb"
|
name = "flix-tmdb"
|
||||||
version = "0.0.10"
|
version = "0.0.12"
|
||||||
|
|
||||||
categories = []
|
categories = []
|
||||||
description = "Clients and models for fetching data from TMDB"
|
description = "Clients and models for fetching data from TMDB"
|
||||||
|
|||||||
@@ -150,8 +150,8 @@ mod tests {
|
|||||||
#[cfg(feature = "sea-orm")]
|
#[cfg(feature = "sea-orm")]
|
||||||
fn test_sea_orm() {
|
fn test_sea_orm() {
|
||||||
use sea_orm::{
|
use sea_orm::{
|
||||||
ActiveModelBehavior, DeriveEntityModel, DerivePrimaryKey, DeriveRelation, EnumIter,
|
ActiveModelBehavior, DeriveEntityModel, DerivePrimaryKey, DeriveRelation, EntityTrait,
|
||||||
PrimaryKeyTrait,
|
EnumIter, PrimaryKeyTrait,
|
||||||
};
|
};
|
||||||
|
|
||||||
use super::Id;
|
use super::Id;
|
||||||
@@ -184,7 +184,7 @@ mod tests {
|
|||||||
/// Type alias for the raw ID representation
|
/// Type alias for the raw ID representation
|
||||||
pub use self::TmdbRepr as RawId;
|
pub use self::TmdbRepr as RawId;
|
||||||
|
|
||||||
/// A placeholder type used for CollectionId
|
#[doc(hidden)]
|
||||||
pub enum Collection {}
|
pub enum Collection {}
|
||||||
/// Type alias for a collection ID
|
/// Type alias for a collection ID
|
||||||
pub type CollectionId = Id<Collection>;
|
pub type CollectionId = Id<Collection>;
|
||||||
@@ -203,7 +203,7 @@ impl TryFrom<flix_model::id::CollectionId> for CollectionId {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A placeholder type used for MovieId
|
#[doc(hidden)]
|
||||||
pub enum Movie {}
|
pub enum Movie {}
|
||||||
/// Type alias for a movie ID
|
/// Type alias for a movie ID
|
||||||
pub type MovieId = Id<Movie>;
|
pub type MovieId = Id<Movie>;
|
||||||
@@ -222,7 +222,7 @@ impl TryFrom<flix_model::id::MovieId> for MovieId {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A placeholder type used for ShowId
|
#[doc(hidden)]
|
||||||
pub enum Show {}
|
pub enum Show {}
|
||||||
/// Type alias for a show ID
|
/// Type alias for a show ID
|
||||||
pub type ShowId = Id<Show>;
|
pub type ShowId = Id<Show>;
|
||||||
|
|||||||
Reference in New Issue
Block a user