Improve synchronization of playback times
Take librespot timestamps instead of approximating them in ncspot.
This commit is contained in:
@@ -72,14 +72,14 @@ impl View for StatusBar {
|
||||
|
||||
let state_icon = if self.use_nerdfont {
|
||||
match self.spotify.get_current_status() {
|
||||
PlayerEvent::Playing => "\u{f909} ",
|
||||
PlayerEvent::Paused => "\u{f8e3} ",
|
||||
PlayerEvent::Playing(_) => "\u{f909} ",
|
||||
PlayerEvent::Paused(_) => "\u{f8e3} ",
|
||||
PlayerEvent::Stopped | PlayerEvent::FinishedTrack => "\u{f9da} ",
|
||||
}
|
||||
} else {
|
||||
match self.spotify.get_current_status() {
|
||||
PlayerEvent::Playing => "▶ ",
|
||||
PlayerEvent::Paused => "▮▮",
|
||||
PlayerEvent::Playing(_) => "▶ ",
|
||||
PlayerEvent::Paused(_) => "▮▮",
|
||||
PlayerEvent::Stopped | PlayerEvent::FinishedTrack => "◼ ",
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user