You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment, there may be several reasons on why stream cannot be played:
mplayer2 is not installed
the stream is offline
These are currently being handled by Radio().afspelen(). I don't really like this.
Solution: create a separate class with modules that check whether everything is in place, e.g.
class CheckSetup():
def stream():
if stream_is_online:
STREAM_ONLINE = True
def mplayer(self):
if mplayer_works:
MPLAYER_WORKS = True
def check(self)
return(self.stream(), self.mplayer())
if not False in CheckSetup():
continue
The text was updated successfully, but these errors were encountered:
At the moment, there may be several reasons on why stream cannot be played:
mplayer2
is not installedThese are currently being handled by
Radio().afspelen()
. I don't really like this.Solution: create a separate class with modules that check whether everything is in place, e.g.
The text was updated successfully, but these errors were encountered: