Update internal/providers/audioPlayer.go

Signed-off-by: AKP <tom@tdpain.net>
This commit is contained in:
akp 2022-05-16 10:53:45 +01:00
parent 5dde9b7d8f
commit 325037e3ad
No known key found for this signature in database
GPG key ID: AA5726202C8879B7

View file

@ -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,