Skip to content

Commit 71225ea

Browse files
committed
- making sure STATES.ANY messages will be displayed
- removing code that would break initial players detection
1 parent edd69a1 commit 71225ea

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

pyradio/log.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ def write(self,
507507
'''
508508
do_empty_msg = True
509509
if msg_id not in (
510-
STATES.RESET, STATES.CONNECT, STATES.CONNECT_ERROR,
510+
STATES.ANY, STATES.RESET, STATES.CONNECT, STATES.CONNECT_ERROR,
511511
STATES.PLAYER_ACTIVATED, STATES.BUFFER, STATES.BUFF_MSG
512512
):
513513
if logger.isEnabledFor(logging.DEBUG):

pyradio/player.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4497,8 +4497,6 @@ def __init__(self, player_name, data_dir, recording):
44974497

44984498
@property
44994499
def cache(self):
4500-
if self._enabled[self._player_name] == '0':
4501-
return []
45024500
if self._player_name == 'mpv':
45034501
self._on_disk()
45044502
if self._player_name != 'vlc':
@@ -4522,10 +4520,6 @@ def delay(self, a_delay):
45224520
x = int(a_delay)
45234521
except ValueError:
45244522
return
4525-
if x == 0:
4526-
self._enabled[self._player_name] = '0'
4527-
return
4528-
self._enabled[self._player_name] = '1'
45294523

45304524
if self._player_name == 'vlc':
45314525
self._data['vlc'][1] = str(x * 1000)

0 commit comments

Comments
 (0)