mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +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
|
||||
# Set credentials to file
|
||||
with open(os.path.join(self.path, 'data.txt'), 'w') as outfile:
|
||||
for server in data['Servers']:
|
||||
server['Name'] = server['Name'].encode('utf-8')
|
||||
json.dump(data, outfile, ensure_ascii=False)
|
||||
json.dump(data, outfile, ensure_ascii=True)
|
||||
else:
|
||||
self._clear()
|
||||
|
||||
|
|
Loading…
Reference in a new issue