From 612493ba90b9974e3503e5b2ac538fcaeacc329f Mon Sep 17 00:00:00 2001 From: Martin Wagner Date: Thu, 24 Dec 2020 13:47:28 +0100 Subject: [PATCH] fixed _get_loop_status --- bin/mpdevil | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/mpdevil b/bin/mpdevil index 6acdfdd..4edd6b7 100755 --- a/bin/mpdevil +++ b/bin/mpdevil @@ -214,11 +214,11 @@ class MPRISInterface: # TODO emit Seeked if needed def _get_loop_status(self): if self._client.connected(): status=self._client.wrapped_call("status") - if int(status["repeat"]) == 1: - if int(status.get("single", 0)) == 1: - return GLib.Variant("s", "Track") - else: + if status["repeat"] == "1": + if status.get("single", "0") == "0": return GLib.Variant("s", "Playlist") + else: + return GLib.Variant("s", "Track") else: return GLib.Variant("s", "None") return GLib.Variant("s", "None")