From a2ef3f6ec4c830611fde1a2e935588ccbbc61c03 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Wed, 30 Apr 2025 10:47:54 +0200 Subject: config works --- server/src/compat/jellyfin/mod.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'server/src/compat/jellyfin/mod.rs') diff --git a/server/src/compat/jellyfin/mod.rs b/server/src/compat/jellyfin/mod.rs index f999060..1c602ca 100644 --- a/server/src/compat/jellyfin/mod.rs +++ b/server/src/compat/jellyfin/mod.rs @@ -7,7 +7,7 @@ pub mod models; use crate::{helper::A, ui::error::MyResult}; use anyhow::{anyhow, Context}; -use jellybase::{database::Database, CONF}; +use jellybase::database::Database; use jellycommon::{ api::{FilterProperty, NodeFilterSort, SortOrder, SortProperty}, routes::{u_asset, u_node_slug_backdrop, u_node_slug_poster}, @@ -19,7 +19,7 @@ use jellylogic::{ filter_sort::filter_and_sort_nodes, login::login_logic, node::DatabaseNodeUserDataExt, session::Session, }; -use jellyui::node_page::aspect_class; +use jellyui::{get_brand, get_slogan, node_page::aspect_class}; use models::*; use rocket::{ get, @@ -47,7 +47,7 @@ pub fn r_jellyfin_system_info_public_case() -> Json { pub fn r_jellyfin_system_info_public() -> Json { Json(json!({ "LocalAddress": LOCAL_ADDRESS, - "ServerName": CONF.brand.clone(), + "ServerName": get_brand(), "Version": VERSION, "ProductName": "Jellything", "OperatingSystem": "", @@ -59,7 +59,7 @@ pub fn r_jellyfin_system_info_public() -> Json { #[get("/Branding/Configuration")] pub fn r_jellyfin_branding_configuration() -> Json { Json(json!({ - "LoginDisclaimer": format!("{} - {}", CONF.brand, CONF.slogan), + "LoginDisclaimer": format!("{} - {}", get_brand(), get_slogan()), "CustomCss": "", "SplashscreenEnabled": false, })) @@ -122,7 +122,7 @@ pub fn r_jellyfin_system_info(_session: A) -> Json { "EncoderLocation": "System", "SystemArchitecture": "X64", "LocalAddress": LOCAL_ADDRESS, - "ServerName": CONF.brand, + "ServerName": get_brand(), "Version": VERSION, "OperatingSystem": "", "Id": SERVER_ID -- cgit v1.2.3-70-g09d2