From 2e8d2e6009adc77501e3116ff392ffaacfbdc5d2 Mon Sep 17 00:00:00 2001 From: mcarlton00 Date: Mon, 16 Dec 2019 19:36:04 -0500 Subject: [PATCH] Move the RemoteAddress check --- jellyfin_kodi/database/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jellyfin_kodi/database/__init__.py b/jellyfin_kodi/database/__init__.py index 297d1bbb..44423bf6 100644 --- a/jellyfin_kodi/database/__init__.py +++ b/jellyfin_kodi/database/__init__.py @@ -404,15 +404,15 @@ def get_credentials(): # Migration for #145 # TODO: CLEANUP for 1.0.0 release for server in credentials['Servers']: + # Functionality removed in #60 + if 'RemoteAddress' in server: + del server['RemoteAddress'] if 'ManualAddress' in server: server['address'] = server['ManualAddress'] del server['ManualAddress'] # If manual is present, local should always be here, but better to be safe if 'LocalAddress' in server: del server['LocalAddress'] - # Functionality removed in #60 - if 'RemoteAddress' in server: - del server['RemoteAddress'] elif 'LocalAddress' in server: server['address'] = server['LocalAddress'] del server['LocalAddress']