remove unused PlaylistPos from player status

This commit is contained in:
Drew Weymouth
2023-12-22 18:07:55 -08:00
parent 91951ebfd2
commit 85bfa73da4
2 changed files with 3 additions and 7 deletions
-3
View File
@@ -322,9 +322,6 @@ func (p *Player) GetStatus() player.Status {
if dur != nil { if dur != nil {
p.status.Duration = dur.(float64) p.status.Duration = dur.(float64)
} }
if playpos, err := p.getInt64Property("playlist-pos"); err == nil {
p.status.PlaylistPos = int(playpos)
}
return p.status return p.status
} }
+3 -4
View File
@@ -51,10 +51,9 @@ const (
// The current status of the player. // The current status of the player.
// Includes playback state, current time, total track time, and playlist position. // Includes playback state, current time, total track time, and playlist position.
type Status struct { type Status struct {
State State State State
TimePos float64 TimePos float64
Duration float64 Duration float64
PlaylistPos int
} }
type ReplayGainMode int type ReplayGainMode int