Esempio n. 1
0
    def playbackEnded(self):
        if not self.isPlaying:
            return

        Debug("[Scrobbler] playbackEnded()")
        if self.curVideo == None:
            Debug("[Scrobbler] Warning: Playback ended but video forgotten.")
            return
        self.isPlaying = False
        self.markedAsWatched = []
        if self.watchedTime != 0:
            if "type" in self.curVideo:
                ratingCheck(
                    self.curVideo["type"],
                    self.traktSummaryInfo,
                    self.watchedTime,
                    self.videoDuration,
                    self.playlistLength,
                )
                self.check()
            self.watchedTime = 0
            self.isMultiPartEpisode = False
        self.traktSummaryInfo = None
        self.curVideo = None
        self.playlistLength = 0
        self.playlistIndex = 0
Esempio n. 2
0
	def playbackEnded(self):
		if self.startTime != 0:
			if self.curVideo == None:
				Debug("[Scrobbler] Warning: Playback ended but video forgotten")
				return
			self.watchedTime += time.time() - self.startTime
			self.pinging = False
			if self.watchedTime != 0:
				if 'type' in self.curVideo: #and 'id' in self.curVideo:
					self.check()
					ratingCheck(self.curVideo, self.watchedTime, self.totalTime, self.playlistLength)
				self.watchedTime = 0
			self.startTime = 0
			self.curVideo = None
Esempio n. 3
0
	def playbackEnded(self):
		if not self.isPlaying:
			return

		logger.debug("playbackEnded()")
		if self.curVideo is None:
			logger.debug("Warning: Playback ended but video forgotten.")
			return
		self.isPlaying = False
		if self.watchedTime != 0:
			if 'type' in self.curVideo:
				self.__scrobble('stop')
				ratingCheck(self.curVideo['type'], self.curVideoInfo, self.watchedTime, self.videoDuration, self.playlistLength)
			self.watchedTime = 0
			self.isMultiPartEpisode = False
		self.curVideoInfo = None
		self.curVideo = None
		self.playlistLength = 0
		self.playlistIndex = 0
Esempio n. 4
0
	def playbackEnded(self):
		if not self.isPlaying:
			return

		Debug("[Scrobbler] playbackEnded()")
		if self.curVideo == None:
			Debug("[Scrobbler] Warning: Playback ended but video forgotten.")
			return
		self.isPlaying = False
		self.markedAsWatched = []
		if self.watchedTime != 0:
			if 'type' in self.curVideo:
				self.__scrobble('stop')
				ratingCheck(self.curVideo['type'], self.traktSummaryInfo, self.watchedTime, self.videoDuration, self.playlistLength)
			self.watchedTime = 0
			self.isMultiPartEpisode = False
		self.traktSummaryInfo = None
		self.curVideo = None
		self.playlistLength = 0
		self.playlistIndex = 0
Esempio n. 5
0
    def playbackEnded(self):
        self.videosToRate.append(self.curVideoInfo)
        if not self.isPlaying:
            return

        logger.debug("playbackEnded()")
        if not self.videosToRate:
            logger.debug("Warning: Playback ended but video forgotten.")
            return
        self.isPlaying = False
        if self.watchedTime != 0:
            if 'type' in self.curVideo:
                self.__scrobble('stop')
                ratingCheck(self.curVideo['type'], self.videosToRate, self.watchedTime, self.videoDuration, self.playlistLength)
            self.watchedTime = 0
            self.isMultiPartEpisode = False
        self.videosToRate = []
        self.curVideoInfo = None
        self.curVideo = None
        self.playlistLength = 0
        self.playlistIndex = 0
    def playbackEnded(self):
        self.videosToRate.append(self.curVideoInfo)
        if not self.isPlaying:
            return

        logger.debug("playbackEnded()")
        if not self.videosToRate:
            logger.debug("Warning: Playback ended but video forgotten.")
            return
        self.isPlaying = False
        if self.watchedTime != 0:
            if "type" in self.curVideo:
                self.__scrobble("stop")
                ratingCheck(
                    self.curVideo["type"], self.videosToRate, self.watchedTime, self.videoDuration, self.playlistLength
                )
            self.watchedTime = 0
            self.isMultiPartEpisode = False
        self.videosToRate = []
        self.curVideoInfo = None
        self.curVideo = None
        self.playlistLength = 0
        self.playlistIndex = 0