mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Merge pull request #446 from mcarlton00/no-crashy-on-skip
Fix crash on addon load
This commit is contained in:
commit
64b0ed29e8
1 changed files with 3 additions and 3 deletions
|
@ -58,10 +58,10 @@ class Events(object):
|
|||
api_client = jellyfin_client.jellyfin
|
||||
|
||||
addon_data = xbmc.translatePath("special://profile/addon_data/plugin.video.jellyfin/data.json")
|
||||
try:
|
||||
with open(addon_data, 'rb') as infile:
|
||||
data = json.load(infile)
|
||||
|
||||
try:
|
||||
server_data = data['Servers'][0]
|
||||
api_client.config.data['auth.server'] = server_data.get('address')
|
||||
api_client.config.data['auth.server-name'] = server_data.get('Name')
|
||||
|
|
Loading…
Reference in a new issue