diff options
author | metamuffin <metamuffin@disroot.org> | 2025-04-30 10:47:54 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-04-30 10:47:54 +0200 |
commit | a2ef3f6ec4c830611fde1a2e935588ccbbc61c03 (patch) | |
tree | ddcc1cb501e6c7237edd491aa7136d02150d03d3 /server/src/compat | |
parent | 212a0f23bc894faf88e159560c113f504349cc05 (diff) | |
download | jellything-a2ef3f6ec4c830611fde1a2e935588ccbbc61c03.tar jellything-a2ef3f6ec4c830611fde1a2e935588ccbbc61c03.tar.bz2 jellything-a2ef3f6ec4c830611fde1a2e935588ccbbc61c03.tar.zst |
config works
Diffstat (limited to 'server/src/compat')
-rw-r--r-- | server/src/compat/jellyfin/mod.rs | 10 |
1 files changed, 5 insertions, 5 deletions
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<Value> { pub fn r_jellyfin_system_info_public() -> Json<Value> { 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<Value> { #[get("/Branding/Configuration")] pub fn r_jellyfin_branding_configuration() -> Json<Value> { 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<Session>) -> Json<Value> { "EncoderLocation": "System", "SystemArchitecture": "X64", "LocalAddress": LOCAL_ADDRESS, - "ServerName": CONF.brand, + "ServerName": get_brand(), "Version": VERSION, "OperatingSystem": "", "Id": SERVER_ID |