mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 18:26:15 +00:00
Add config migration for pr #145
This commit is contained in:
parent
2adad4250a
commit
039eea0aec
1 changed files with 9 additions and 0 deletions
|
@ -392,6 +392,15 @@ def get_credentials():
|
||||||
|
|
||||||
credentials['Servers'] = credentials.get('Servers', [])
|
credentials['Servers'] = credentials.get('Servers', [])
|
||||||
|
|
||||||
|
# Migration for #145
|
||||||
|
# TODO: CLEANUP for 1.0.0 release
|
||||||
|
for server in credentials['Servers']:
|
||||||
|
if 'LocalAddress' in server:
|
||||||
|
server['address'] = server['LocalAddress']
|
||||||
|
del server['LocalAddress']
|
||||||
|
if 'LastConnectionMode' in server:
|
||||||
|
del server['LastConnectionMode']
|
||||||
|
|
||||||
return credentials
|
return credentials
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue