From 4a88bfbb8c57718c7dc636c8dcf9ba2a31a97fd2 Mon Sep 17 00:00:00 2001 From: Radiicall <66682497+Radiicall@users.noreply.github.com> Date: Fri, 28 Jul 2023 02:16:37 +0200 Subject: [PATCH] Check if ExtraType == ThemeSong --- src/services/jellyfin.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/services/jellyfin.rs b/src/services/jellyfin.rs index 30d7ac5..1d30027 100644 --- a/src/services/jellyfin.rs +++ b/src/services/jellyfin.rs @@ -188,6 +188,14 @@ impl Content { content.state_message(genres); content.item_id(now_playing_item["Id"].as_str().unwrap().to_string()); } else if now_playing_item["Type"].as_str().unwrap() == "Audio" { + if let Some(extratype) = now_playing_item + .get("ExtraType") + .and_then(Value::as_str) + { + if extratype == "ThemeSong" { + return + } + } let artist = now_playing_item["AlbumArtist"] .as_str() .unwrap()