Skip to content

Commit

Permalink
fix(mpv): avoid getting "(Played)" into the item title
Browse files Browse the repository at this point in the history
this would affect mpv window and bar as well as discord presence
  • Loading branch information
Vernoxvernax committed May 5, 2024
1 parent d035b44 commit 78aca30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mpv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ impl Player {
}
}
self.video = Some(Video {
title: if item.r#type == "movie" { item.to_string_split() } else { item.to_string_split() },
title: item.to_string_split(),
stream_url,
id: item.ratingKey,
video_type: if item.r#type == "movie" { VideoType::Movie } else { VideoType::Episode },
Expand Down Expand Up @@ -155,7 +155,7 @@ impl Player {
}

self.video = Some(Video {
title: if item.Type == "Movie" { vec![item.to_string()] } else { item.to_string_split() },
title: item.to_string_split(),
stream_url,
id: item.Id,
video_type: if item.Type == "Movie" { VideoType::Movie } else { VideoType::Episode },
Expand Down

0 comments on commit 78aca30

Please sign in to comment.