def _player(self):
try:
if not xbmc.abortRequested and sctop.player.isPlayingVideo() and sctop.player.scid > 0:
notificationtime = 30
playTime = sctop.player.getTime()
totalTime = sctop.player.getTotalTime()
sctop.player.watchedTime = playTime
self.timer += 1
if self.timer >= 600:
sctop.player.waitForChange()
self.timer = 0
data = {'scid': sctop.player.scid, 'action': 'ping', 'prog': sctop.player.timeRatio()}
sctop.player.action(data)
util.debug("[SC] upNext [%s] " % str((totalTime - playTime) <= int(notificationtime)))
showupnext = sctop.getSettingAsBool("show_up_next")
if showupnext and (totalTime - playTime) <= int(notificationtime):
sctop.player.upNext()
except Exception, e:
bug.onExceptionRaised(e)
util.debug("[SC] _player e: %s" % str(e))
pass
评论列表
文章目录