mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-06-03 23:06:14 +00:00
replaced auto play episode with custom nextup dialog, also added
ItemInfo and PersonInfo from the old addon
This commit is contained in:
parent
d4e44122ba
commit
44b22e7a67
14 changed files with 1741 additions and 26 deletions
11
service.py
11
service.py
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue