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.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/pydora/audio_backend.py b/pydora/audio_backend.py
index bd778ad..aecd87e 100644
--- a/pydora/audio_backend.py
+++ b/pydora/audio_backend.py
@@ -15,18 +15,21 @@ log = logging.getLogger("pydora.audio_backend")
15class PlayerException(Exception): 15class PlayerException(Exception):
16 """Base class for all player exceptions 16 """Base class for all player exceptions
17 """ 17 """
18
18 pass 19 pass
19 20
20 21
21class UnsupportedEncoding(PlayerException): 22class UnsupportedEncoding(PlayerException):
22 """Song encoding is not supported by player backend 23 """Song encoding is not supported by player backend
23 """ 24 """
25
24 pass 26 pass
25 27
26 28
27class PlayerUnusable(PlayerException): 29class PlayerUnusable(PlayerException):
28 """Player can not be used on this system 30 """Player can not be used on this system
29 """ 31 """
32
30 pass 33 pass
31 34
32 35
@@ -172,7 +175,8 @@ class BasePlayer:
172 self._loop_hook() 175 self._loop_hook()
173 176
174 readers, _, _ = select.select( 177 readers, _, _ = select.select(
175 self._get_select_readers(), [], [], 1) 178 self._get_select_readers(), [], [], 1
179 )
176 180
177 for handle in readers: 181 for handle in readers:
178 if handle.fileno() == self._control_fd: 182 if handle.fileno() == self._control_fd:
@@ -296,7 +300,6 @@ class VLCPlayer(BasePlayer):
296 300
297 301
298class RemoteVLC(VLCPlayer): 302class RemoteVLC(VLCPlayer):
299
300 def __init__(self, host, port, callbacks, control_channel): 303 def __init__(self, host, port, callbacks, control_channel):
301 self._connect_to = (host, int(port)) 304 self._connect_to = (host, int(port))
302 self._control_sock = None 305 self._control_sock = None