Fix TypeError on manually entering PMS port

- Fixes #242
This commit is contained in:
tomkat83 2017-03-01 18:51:18 +01:00
parent 1ac6bae335
commit be48743b1b

View file

@ -133,8 +133,7 @@ def dialog(typus, *args, **kwargs):
'{ipaddress}': xbmcgui.INPUT_IPADDRESS,
'{password}': xbmcgui.INPUT_PASSWORD
}
for key, value in types.iteritems():
kwargs['type'] = kwargs['type'].replace(key, value)
kwargs['type'] = types[kwargs['type']]
if "heading" in kwargs:
kwargs['heading'] = kwargs['heading'].replace("{plex}",
language(29999))