scutils.py 文件源码

python
阅读 29 收藏 0 点赞 0 评论 0

项目:plugin.video.stream-cinema 作者: bbaronSVK 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号