You've already forked flix
Fix bug with & in movie names; update catalog
This commit is contained in:
@@ -93,6 +93,9 @@ pub(crate) struct AddOverrides {
|
||||
/// Override the displayed title.
|
||||
#[arg(long)]
|
||||
pub title: Option<String>,
|
||||
/// Override the displayed overview.
|
||||
#[arg(long)]
|
||||
pub overview: Option<String>,
|
||||
/// Override the title used to sort.
|
||||
#[arg(long)]
|
||||
pub sort_title: Option<String>,
|
||||
@@ -106,6 +109,7 @@ pub(crate) struct AddOverrides {
|
||||
|
||||
/// Top level cli commands.
|
||||
#[derive(Subcommand)]
|
||||
#[expect(clippy::large_enum_variant, reason = "not performance critical")]
|
||||
pub(crate) enum Command {
|
||||
/// Initialize a new database.
|
||||
Init,
|
||||
|
||||
@@ -52,6 +52,7 @@ pub(crate) async fn add(
|
||||
.with_context(|| format!("collections().get_details({})", id.into_raw()))?;
|
||||
|
||||
let title = overrides.title.unwrap_or(collection.title);
|
||||
let overview = overrides.overview.unwrap_or(collection.overview);
|
||||
|
||||
let sort_title = overrides
|
||||
.sort_title
|
||||
@@ -81,7 +82,7 @@ pub(crate) async fn add(
|
||||
let flix = entity::info::collections::ActiveModel {
|
||||
id: NotSet,
|
||||
title: Set(title),
|
||||
overview: Set(collection.overview),
|
||||
overview: Set(overview),
|
||||
sort_title: Set(sort_title),
|
||||
fs_slug: Set(fs_slug),
|
||||
web_slug: Set(web_slug),
|
||||
|
||||
Reference in New Issue
Block a user