- Implemented LocalFilesProvider to manage local video files. - Added LocalIndex for in-memory and SQLite-backed indexing of video files. - Introduced scanning functionality to detect video files and extract metadata. - Added API endpoints for listing collections, genres, and series based on provider capabilities. - Enhanced existing routes to check for provider capabilities before processing requests. - Updated frontend to utilize provider capabilities for conditional rendering of UI elements. - Implemented rescan functionality to refresh the local files index. - Added database migration for local files index schema.
52 lines
1.6 KiB
TOML
52 lines
1.6 KiB
TOML
[package]
|
|
name = "infra"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
[features]
|
|
default = ["sqlite", "jellyfin"]
|
|
sqlite = ["sqlx/sqlite", "k-core/sqlite"]
|
|
postgres = ["sqlx/postgres", "k-core/postgres"]
|
|
broker-nats = ["dep:futures-util", "k-core/broker-nats"]
|
|
auth-oidc = ["dep:openidconnect", "dep:url", "dep:axum-extra"]
|
|
auth-jwt = ["dep:jsonwebtoken"]
|
|
jellyfin = ["dep:reqwest"]
|
|
local-files = ["dep:walkdir", "dep:base64", "sqlite"]
|
|
|
|
[dependencies]
|
|
k-core = { git = "https://git.gabrielkaszewski.dev/GKaszewski/k-core", features = [
|
|
"logging",
|
|
"db-sqlx",
|
|
] }
|
|
domain = { path = "../domain" }
|
|
|
|
async-trait = "0.1.89"
|
|
chrono = { version = "0.4.42", features = ["serde"] }
|
|
sqlx = { version = "0.8.6", features = ["runtime-tokio", "chrono", "migrate"] }
|
|
thiserror = "2.0.17"
|
|
anyhow = "1.0"
|
|
tokio = { version = "1.48.0", features = ["full"] }
|
|
tracing = "0.1"
|
|
uuid = { version = "1.19.0", features = ["v4", "serde"] }
|
|
serde_json = "1.0"
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
futures-core = "0.3"
|
|
password-auth = "1.0"
|
|
|
|
# Optional dependencies
|
|
async-nats = { version = "0.45", optional = true }
|
|
futures-util = { version = "0.3", optional = true }
|
|
openidconnect = { version = "4.0.1", optional = true }
|
|
url = { version = "2.5.8", optional = true }
|
|
axum-extra = { version = "0.10", features = ["cookie-private"], optional = true }
|
|
reqwest = { version = "0.12", features = ["json"], optional = true }
|
|
jsonwebtoken = { version = "10.2.0", features = [
|
|
"sha2",
|
|
"p256",
|
|
"hmac",
|
|
"rsa",
|
|
"rust_crypto",
|
|
], optional = true }
|
|
walkdir = { version = "2", optional = true }
|
|
base64 = { version = "0.22", optional = true }
|