Fix bug with & in movie names; update catalog

This commit is contained in:
2026-09-08 20:52:08 -07:00
parent 5e49f653f1
commit d2a867fa19
15 changed files with 66 additions and 54 deletions
+4
View File
@@ -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,
+2 -1
View File
@@ -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),