Skip to content

Commit

Permalink
Merge branch 'main' into logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Radiicall committed Apr 19, 2024
2 parents b8cb840 + 5e92062 commit fc496d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jellyfin-rpc/src/services/jellyfin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,16 +278,16 @@ impl Content {
}

if now_playing_item.get("IndexNumberEnd").is_some() {
let end_number = if config.jellyfin.append_prefix? {
let end_number = if config.jellyfin.append_prefix.unwrap_or(false) {
format!("{:02}", now_playing_item["IndexNumberEnd"])
} else {
format!("{}", now_playing_item["IndexNumberEnd"])
};
state += &(" - ".to_string() + &end_number);
}

if !config.jellyfin.show_simple? {
state += &(" ".to_string() + name);
if !config.jellyfin.show_simple.unwrap_or(false) {
state += &(" ".to_string() + name);
}

content.media_type(MediaType::Episode);
Expand Down

0 comments on commit fc496d8

Please sign in to comment.