Skip to content

Commit

Permalink
shoutcast: Fix crash when recording stream
Browse files Browse the repository at this point in the history
Traceback (most recent call last):
  File "/usr/lib/enigma2/python/Plugins/Extensions/SHOUTcast/plugin.py", line 405, in streamripperDataAvail
TypeError: a bytes-like object is required, not 'str'
  • Loading branch information
Hains authored and littlesat committed Aug 21, 2023
1 parent 7d751e6 commit 142914e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shoutcast/src/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ def streamripperClosed(self, retval):
self["key_red"].setText(_("Record"))

def streamripperDataAvail(self, data):
sData = data.replace('\n', '')
sData = data.decode().replace('\n', '')
self["console"].setText(sData)

def stopReloadStationListTimer(self):
Expand Down

0 comments on commit 142914e

Please sign in to comment.