remove unused PlaylistPos from player status
This commit is contained in:
@@ -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
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user