aboutsummaryrefslogtreecommitdiff
path: root/pydora/audio_backend.py
diff options
context:
space:
mode:
Diffstat (limited to 'pydora/audio_backend.py')
-rw-r--r--pydora/audio_backend.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pydora/audio_backend.py b/pydora/audio_backend.py
index d39bb9b..bd778ad 100644
--- a/pydora/audio_backend.py
+++ b/pydora/audio_backend.py
@@ -30,7 +30,7 @@ class PlayerUnusable(PlayerException):
30 pass 30 pass
31 31
32 32
33class BasePlayer(object): 33class BasePlayer:
34 """Audio Backend Process Manager 34 """Audio Backend Process Manager
35 35
36 Starts and owns a handle to an audio backend process then feeds commands to 36 Starts and owns a handle to an audio backend process then feeds commands to
@@ -208,7 +208,7 @@ class MPG123Player(BasePlayer):
208 """ 208 """
209 209
210 def __init__(self, callbacks, control_channel): 210 def __init__(self, callbacks, control_channel):
211 super(MPG123Player, self).__init__(callbacks, control_channel) 211 super().__init__(callbacks, control_channel)
212 self._cmd.extend(["-q", "-R", "--ignore-mime", "."]) 212 self._cmd.extend(["-q", "-R", "--ignore-mime", "."])
213 213
214 def _find_path(self): 214 def _find_path(self):
@@ -246,7 +246,7 @@ class VLCPlayer(BasePlayer):
246 VOL_STEPS = 5 246 VOL_STEPS = 5
247 247
248 def __init__(self, callbacks, control_channel): 248 def __init__(self, callbacks, control_channel):
249 super(VLCPlayer, self).__init__(callbacks, control_channel) 249 super().__init__(callbacks, control_channel)
250 self._cmd.extend(["-I", "rc", "--advanced", "--rc-fake-tty", "-q"]) 250 self._cmd.extend(["-I", "rc", "--advanced", "--rc-fake-tty", "-q"])
251 self._last_poll = 0 251 self._last_poll = 0
252 252
@@ -300,7 +300,7 @@ class RemoteVLC(VLCPlayer):
300 def __init__(self, host, port, callbacks, control_channel): 300 def __init__(self, host, port, callbacks, control_channel):
301 self._connect_to = (host, int(port)) 301 self._connect_to = (host, int(port))
302 self._control_sock = None 302 self._control_sock = None
303 super(RemoteVLC, self).__init__(callbacks, control_channel) 303 super().__init__(callbacks, control_channel)
304 304
305 def _get_select_readers(self): 305 def _get_select_readers(self):
306 return [self._control_channel, self._control_sock] 306 return [self._control_channel, self._control_sock]