Fix potential TypeError if setting value is missing

This commit is contained in:
croneter 2018-11-20 19:14:11 +01:00
parent 0d22b72112
commit 45b3c0e3f5

View file

@ -85,7 +85,7 @@ class Service():
videonodes.VideoNodes().clearProperties()
clientinfo.getDeviceId()
# Init time-offset between Kodi and Plex
timing.KODI_PLEX_TIME_OFFSET = float(utils.settings('kodiplextimeoffset')) or 0.0
timing.KODI_PLEX_TIME_OFFSET = float(utils.settings('kodiplextimeoffset') or 0.0)
def isCanceled(self):
return xbmc.abortRequested or app.APP.stop_pkc