librespot: use utf-8 encoding in Python when parsing librespot

This commit is contained in:
mglae 2021-04-17 17:51:06 +02:00
parent 8f3d1051d8
commit 40027a4237
3 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,6 @@
128
- Python: fix Librespot output is utf-8
127
- Update to 0.1.6

View File

@ -5,7 +5,7 @@
PKG_NAME="librespot"
PKG_VERSION="0.1.6"
PKG_SHA256="7506b4448d3ae0eba063cd711baebdc23444c706c87d0551d5a4cbc623e70f30"
PKG_REV="127"
PKG_REV="128"
PKG_ARCH="any"
PKG_LICENSE="MIT"
PKG_SITE="https://github.com/librespot-org/librespot/"

View File

@ -119,7 +119,8 @@ class Librespot(xbmc.Player):
env=ADDON_ENVT,
stderr=subprocess.STDOUT,
stdout=subprocess.PIPE,
text=True)
text=True,
encoding='utf-8')
log('librespot started')
with self.librespot.stdout:
for line in self.librespot.stdout: