mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
Merge pull request #165 from mcarlton00/remove-remoteaddress
Move the RemoteAddress check
This commit is contained in:
commit
412f113b83
1 changed files with 3 additions and 3 deletions
|
@ -404,15 +404,15 @@ def get_credentials():
|
||||||
# Migration for #145
|
# Migration for #145
|
||||||
# TODO: CLEANUP for 1.0.0 release
|
# TODO: CLEANUP for 1.0.0 release
|
||||||
for server in credentials['Servers']:
|
for server in credentials['Servers']:
|
||||||
|
# Functionality removed in #60
|
||||||
|
if 'RemoteAddress' in server:
|
||||||
|
del server['RemoteAddress']
|
||||||
if 'ManualAddress' in server:
|
if 'ManualAddress' in server:
|
||||||
server['address'] = server['ManualAddress']
|
server['address'] = server['ManualAddress']
|
||||||
del server['ManualAddress']
|
del server['ManualAddress']
|
||||||
# If manual is present, local should always be here, but better to be safe
|
# If manual is present, local should always be here, but better to be safe
|
||||||
if 'LocalAddress' in server:
|
if 'LocalAddress' in server:
|
||||||
del server['LocalAddress']
|
del server['LocalAddress']
|
||||||
# Functionality removed in #60
|
|
||||||
if 'RemoteAddress' in server:
|
|
||||||
del server['RemoteAddress']
|
|
||||||
elif 'LocalAddress' in server:
|
elif 'LocalAddress' in server:
|
||||||
server['address'] = server['LocalAddress']
|
server['address'] = server['LocalAddress']
|
||||||
del server['LocalAddress']
|
del server['LocalAddress']
|
||||||
|
|
Loading…
Reference in a new issue