1. Luke Plant
  2. playerdo


Luke Plant  committed 159974e

Fix for newer version of Banshee

  • Participants
  • Parent commits 9fc9fa5
  • Branches default
  • Tags version-0.5.1

Comments (0)

Files changed (2)

File CHANGES.rst

View file
 * Fixed some Python 3 incompatibilities
 * Fixed crash if DBus library is not installed
+* Fixed support for newer version of Banshee
 Version 0.5

File playerdo/backends/banshee.py

View file
 from playerdo.backends.base import Player
-from playerdo.utils import process_retval, process_stdout
+from playerdo.utils import process_retval, process_stdout, program_running
 class Banshee(Player):
     process_name = "banshee-1"
     friendly_name = "Banshee"
+    def is_running(self):
+        return program_running("banshee-1") or program_running("banshee")
     def is_stopped(self):
         return process_stdout(["banshee", "--query-current-state"]).strip() \
             ==  "current-state: idle"