replaced auto play episode with custom nextup dialog, also added

ItemInfo and PersonInfo from the old addon
This commit is contained in:
im85288 2015-05-06 22:41:44 +01:00
parent d4e44122ba
commit 44b22e7a67
14 changed files with 1741 additions and 26 deletions

View file

@ -94,9 +94,14 @@ class Service():
pass
lastProgressUpdate = datetime.today()
# only try autoplay when there's 20 seconds or less remaining and only once!
if (totalTime - playTime <= 20 and (lastFile==None or lastFile!=currentFile)):
lastFile = currentFile
player.autoPlayPlayback()
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()
except Exception, e:
self.logMsg("Exception in Playback Monitor Service: %s" % e)