One less import
This commit is contained in:
parent
143ef86978
commit
26652a48c2
1 changed files with 3 additions and 6 deletions
|
@ -12,7 +12,6 @@ import xbmcgui
|
||||||
import xbmcplugin
|
import xbmcplugin
|
||||||
|
|
||||||
import artwork
|
import artwork
|
||||||
import clientinfo
|
|
||||||
import playutils as putils
|
import playutils as putils
|
||||||
import playlist
|
import playlist
|
||||||
import read_embyserver as embyserver
|
import read_embyserver as embyserver
|
||||||
|
@ -22,11 +21,12 @@ import downloadutils
|
||||||
import PlexAPI
|
import PlexAPI
|
||||||
import PlexFunctions as PF
|
import PlexFunctions as PF
|
||||||
|
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
log = logging.getLogger("PLEX."+__name__)
|
log = logging.getLogger("PLEX."+__name__)
|
||||||
|
|
||||||
|
addonName = "PlexKodiConnect"
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
|
|
||||||
|
@ -37,9 +37,6 @@ class PlaybackUtils():
|
||||||
self.item = item
|
self.item = item
|
||||||
self.API = PlexAPI.API(item)
|
self.API = PlexAPI.API(item)
|
||||||
|
|
||||||
self.clientInfo = clientinfo.ClientInfo()
|
|
||||||
self.addonName = self.clientInfo.getAddonName()
|
|
||||||
|
|
||||||
self.userid = window('currUserId')
|
self.userid = window('currUserId')
|
||||||
self.server = window('pms_server')
|
self.server = window('pms_server')
|
||||||
|
|
||||||
|
@ -231,7 +228,7 @@ class PlaybackUtils():
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if settings('askCinema') == "true":
|
if settings('askCinema') == "true":
|
||||||
resp = xbmcgui.Dialog().yesno(self.addonName, "Play trailers?")
|
resp = xbmcgui.Dialog().yesno(addonName, "Play trailers?")
|
||||||
if not resp:
|
if not resp:
|
||||||
# User selected to not play trailers
|
# User selected to not play trailers
|
||||||
log.info("Skip trailers.")
|
log.info("Skip trailers.")
|
||||||
|
|
Loading…
Reference in a new issue