def onPlayBackEnded(self):
		Bookmarks().reset(self.current_time, self.media_length, self.name, self.year)
		trakt.scrobbleReset(imdb=self.imdb, tvdb=self.tvdb, season=self.season, episode=self.episode, refresh=False)
		self.libForPlayback()
		# if control.setting('crefresh') == 'true':
			# control.refresh()
			# control.sleep(500)
		control.trigger_widget_refresh()
		xbmc.log('[ plugin.video.venom ] onPlayBackEnded callback', 2)
Beispiel #2
0
	def onPlayBackEnded(self):
		Bookmarks().reset(self.current_time, self.media_length, self.name, self.year)
		if self.traktCredentials:
			trakt.scrobbleReset(imdb=self.imdb, tvdb=self.tvdb, season=self.season, episode=self.episode, refresh=False) # refresh issues container.refresh()
		self.libForPlayback()
		if control.playlist.getposition() == control.playlist.size() or control.playlist.size() == 1:
			control.playlist.clear()
		xbmc.log('[ plugin.video.venom ] onPlayBackEnded callback', LOGINFO)
		log_utils.log('[ plugin.video.venom ] onPlayBackEnded callback', level=log_utils.LOGDEBUG)
	def set_scrobble(self, current_time, media_length, media_type, imdb='', tmdb='', tvdb='', season='', episode=''):
		try:
			percent = float((current_time / media_length)) * 100
			seekable = (int(current_time) > 180 and (percent <= 85))
			if seekable:
				trakt.scrobbleMovie(imdb, tmdb, percent) if media_type == 'movie' else trakt.scrobbleEpisode(imdb, tmdb, tvdb, season, episode, percent)
			if percent > 85:
				trakt.scrobbleReset(imdb, tvdb, season, episode, refresh=False)
		except:
			log_utils.error()
Beispiel #4
0
 def onPlayBackEnded(self):
     Bookmarks().reset(self.current_time, self.media_length, self.name,
                       self.year)
     if self.traktCredentials:
         trakt.scrobbleReset(imdb=self.imdb,
                             tvdb=self.tvdb,
                             season=self.season,
                             episode=self.episode,
                             refresh=False)
     self.libForPlayback()
     # if control.setting('crefresh') == 'true':
     # control.refresh()
     # control.sleep(500)
     # control.trigger_widget_refresh() # skinshortcuts handles widget refresh
     xbmc.log('[ plugin.video.dg ] onPlayBackEnded callback', LOGINFO)