Skip to content

Commit 53d397d

Browse files
committed
enabling /srb remote control server command for text based usage
1 parent 6380053 commit 53d397d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

pyradio/radio.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6877,7 +6877,8 @@ def _open_radio_browser(self):
68776877
self.playSelectionBrowser(a_url='api.radio-browser.info')
68786878

68796879
def search_radio_browser_headless(self, index):
6880-
if self._cnf.headless and self._cnf.online_browser:
6880+
#if self._cnf.headless and self._cnf.online_browser:
6881+
if self._cnf.online_browser:
68816882
if logger.isEnabledFor(logging.DEBUG):
68826883
logger.debug('Performing RabioBrowser headles search with index {}'.format(index))
68836884
self._cnf.online_browser.search_by_index(
@@ -6889,10 +6890,6 @@ def search_radio_browser_headless(self, index):
68896890
# return '<div class="alert alert-danger">0 stations returned!</div>'
68906891
# logger.info('return number of stations')
68916892
# return '<div class="alert alert-success">Number of stations: {}</div>'.format(self._number_of_radio_browser_search_results)
6892-
elif not self._cnf.headless:
6893-
if logger.isEnabledFor(logging.DEBUG):
6894-
logger.error('RadioBrowser headles search: not a headless session')
6895-
return 'RadioBrowser headles search: not a headless session\n'
68966893
else:
68976894
if logger.isEnabledFor(logging.DEBUG):
68986895
logger.error('RadioBrowser headles search: browser is not active')

0 commit comments

Comments
 (0)