mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-06-03 06:46:12 +00:00
moved out next up play logic to seperate addon
This commit is contained in:
parent
0268b9b92e
commit
44286e2764
3 changed files with 0 additions and 56 deletions
10
service.py
10
service.py
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue