diff options
Diffstat (limited to 'pydora/audio_backend.py')
-rw-r--r-- | pydora/audio_backend.py | 7 |
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") | |||
15 | class PlayerException(Exception): | 15 | class 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 | ||
21 | class UnsupportedEncoding(PlayerException): | 22 | class 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 | ||
27 | class PlayerUnusable(PlayerException): | 29 | class 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 | ||
298 | class RemoteVLC(VLCPlayer): | 302 | class 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 |