moved out next up play logic to seperate addon

This commit is contained in:
im85288 2015-06-01 01:16:55 +01:00
parent 0268b9b92e
commit 44286e2764
3 changed files with 0 additions and 56 deletions

View file

@ -123,16 +123,6 @@ class Service():
player.reportPlayback()
except: pass
lastProgressUpdate = datetime.today()
# only try autoplay when there's 20 seconds or less remaining and only once!
addonSettings = xbmcaddon.Addon(id='plugin.video.emby')
# if its an episode see if autoplay is enabled
if addonSettings.getSetting("autoPlaySeason")=="true":
notificationtime = addonSettings.getSetting("autoPlaySeasonTime")
if (totalTime - playTime <= int(notificationtime) and (lastFile==None or lastFile!=currentFile)):
lastFile = currentFile
player.autoPlayPlayback()
self.logMsg("Netflix style autoplay succeeded.", 2)
except Exception, e:
self.logMsg("Exception in Playback Monitor Service: %s" % e)