From be48743b1bc70cdf8ae781f3ab71e0feddf278c9 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Wed, 1 Mar 2017 18:51:18 +0100 Subject: [PATCH] Fix TypeError on manually entering PMS port - Fixes #242 --- resources/lib/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/lib/utils.py b/resources/lib/utils.py index 34b34c1e..bdfe6e9d 100644 --- a/resources/lib/utils.py +++ b/resources/lib/utils.py @@ -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))