Skip to content

Commit

Permalink
Add config migration for pr jellyfin#145
Browse files Browse the repository at this point in the history
  • Loading branch information
oddstr13 committed Dec 13, 2019
1 parent 2adad42 commit 039eea0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions jellyfin_kodi/database/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,15 @@ def get_credentials():

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


Expand Down

0 comments on commit 039eea0

Please sign in to comment.