From 26652a48c23880f6badd5c802f512c8361eee327 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Thu, 1 Sep 2016 19:44:15 +0200 Subject: [PATCH] One less import --- resources/lib/playbackutils.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/resources/lib/playbackutils.py b/resources/lib/playbackutils.py index 37b16ac1..15e4a969 100644 --- a/resources/lib/playbackutils.py +++ b/resources/lib/playbackutils.py @@ -12,7 +12,6 @@ import xbmcgui import xbmcplugin import artwork -import clientinfo import playutils as putils import playlist import read_embyserver as embyserver @@ -22,11 +21,12 @@ import downloadutils import PlexAPI import PlexFunctions as PF - ############################################################################### log = logging.getLogger("PLEX."+__name__) +addonName = "PlexKodiConnect" + ############################################################################### @@ -37,9 +37,6 @@ class PlaybackUtils(): self.item = item self.API = PlexAPI.API(item) - self.clientInfo = clientinfo.ClientInfo() - self.addonName = self.clientInfo.getAddonName() - self.userid = window('currUserId') self.server = window('pms_server') @@ -231,7 +228,7 @@ class PlaybackUtils(): return False if settings('askCinema') == "true": - resp = xbmcgui.Dialog().yesno(self.addonName, "Play trailers?") + resp = xbmcgui.Dialog().yesno(addonName, "Play trailers?") if not resp: # User selected to not play trailers log.info("Skip trailers.")