Update internal/providers/audioPlayer.go
Signed-off-by: AKP <tom@tdpain.net>
This commit is contained in:
parent
5dde9b7d8f
commit
325037e3ad
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ func (g *AudioPlayer) getInfo() (*playingAudioInfo, error) {
|
|||
rawMetadataOutput, err := runCommand(playerctlExecutable, "metadata")
|
||||
if err != nil {
|
||||
// If there's no player open, an error will be thrown by this command
|
||||
// with the below stdout
|
||||
// with the below output
|
||||
if string(rawMetadataOutput) == "No players found" {
|
||||
return &playingAudioInfo{
|
||||
Status: playerStatusUnknown,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue