aboutsummaryrefslogtreecommitdiff
path: root/server/src/compat/jellyfin
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/compat/jellyfin')
-rw-r--r--server/src/compat/jellyfin/mod.rs10
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