Merge pull request #5325 from mglae/le10_librespot_utf8

librespot: use utf-8 encoding in Python when parsing librespot
This commit is contained in:
Christian Hewitt 2021-04-17 20:34:20 +04:00 committed by GitHub
commit c9d1954c1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View File

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

View File

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

View File

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