mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Fix server name encoding
This commit is contained in:
parent
d4ea2666fa
commit
7e38a743d7
1 changed files with 1 additions and 3 deletions
|
@ -57,9 +57,7 @@ class Credentials(object):
|
||||||
self.credentials = data
|
self.credentials = data
|
||||||
# Set credentials to file
|
# Set credentials to file
|
||||||
with open(os.path.join(self.path, 'data.txt'), 'w') as outfile:
|
with open(os.path.join(self.path, 'data.txt'), 'w') as outfile:
|
||||||
for server in data['Servers']:
|
json.dump(data, outfile, ensure_ascii=True)
|
||||||
server['Name'] = server['Name'].encode('utf-8')
|
|
||||||
json.dump(data, outfile, ensure_ascii=False)
|
|
||||||
else:
|
else:
|
||||||
self._clear()
|
self._clear()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue