From 92a5eac7bea7ba1978bca22358f13c96867b33e4 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Sun, 2 Jul 2017 15:03:53 +0200 Subject: [PATCH] Unify XML paths --- resources/lib/connectmanager.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/resources/lib/connectmanager.py b/resources/lib/connectmanager.py index 86ef1ab7..1db49c41 100644 --- a/resources/lib/connectmanager.py +++ b/resources/lib/connectmanager.py @@ -16,7 +16,7 @@ import variables as v log = getLogger("PLEX."+__name__) -# STATE = connectionmanager.ConnectionState +XML_PATH = (tryEncode(v.ADDON_PATH), "default", "1080i") ############################################################################### @@ -96,10 +96,7 @@ class ConnectManager(object): """ Will return selected server or raise RuntimeError """ - dia = ServerConnect("script-emby-connect-server.xml", - tryEncode(v.ADDON_PATH), - "default", - "1080i") + dia = ServerConnect("script-emby-connect-server.xml", *XML_PATH) dia.doModal() if dia.is_server_selected():