Skip to content

Commit

Permalink
Check if ExtraType == ThemeSong
Browse files Browse the repository at this point in the history
  • Loading branch information
Radiicall committed Jul 28, 2023
1 parent ab8c3dd commit 4a88bfb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/services/jellyfin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 4a88bfb

Please sign in to comment.