Esempio n. 1
0
		def __init__(self, *args, **kwargs):
			if Utils.NETFLIX_VIEW == 'true':
				super(DialogEpisodeInfo, self).__init__(*args, **kwargs)
				self.type = 'Episode'
				self.tvshow_id = kwargs.get('tvshow_id')
				data = TheMovieDB.extended_episode_info(tvshow_id=self.tvshow_id, season=kwargs.get('season'), episode=kwargs.get('episode'))
				if not data:
					return None
				self.info, self.data = data
				self.listitems = [
					(1000, self.data['actors'] + self.data['guest_stars']),
					(750, self.data['crew']),
					(1350, self.data['images'])
					]
			else:
				super(DialogEpisodeInfo, self).__init__(*args, **kwargs)
				self.type = 'Episode'
				self.tvshow_id = kwargs.get('tvshow_id')
				data = TheMovieDB.extended_episode_info(tvshow_id=self.tvshow_id, season=kwargs.get('season'), episode=kwargs.get('episode'))
				if not data:
					return None
				self.info, self.data = data
				self.info['ImageFilter'], self.info['ImageColor'] = ImageTools.filter_image(input_img=self.info.get('thumb', ''), radius=25)
				self.listitems = [
					(1150, self.data['videos']),
					(1000, self.data['actors'] + self.data['guest_stars']),
					(750, self.data['crew']),
					(1350, self.data['images'])
					]
 def update_states(self):
     xbmc.sleep(2000)  # delay because MovieDB takes some time to update
     _, __, self.states = tmdb.extended_episode_info(tvshow_id=self.tvshow_id,
                                                     season=self.info.get_info("season"),
                                                     episode=self.info.get_info("episode"),
                                                     cache_time=0)
     super(DialogEpisodeInfo, self).update_states()
 def update_states(self):
     xbmc.sleep(2000)  # delay because MovieDB takes some time to update
     _, __, self.states = tmdb.extended_episode_info(
         tvshow_id=self.tvshow_id,
         season=self.info.get_info("season"),
         episode=self.info.get_info("episode"),
         cache_time=0)
     super(DialogEpisodeInfo, self).update_states()
 def __init__(self, *args, **kwargs):
     super(DialogEpisodeInfo, self).__init__(*args, **kwargs)
     self.tvshow_id = kwargs.get('tvshow_id')
     data = tmdb.extended_episode_info(tvshow_id=self.tvshow_id,
                                       season=kwargs.get('season'),
                                       episode=kwargs.get('episode'))
     if not data:
         return None
     self.info, self.lists, self.states = data
     self.info.update_properties(imagetools.blur(self.info.get("thumb")))
 def __init__(self, *args, **kwargs):
     super(DialogEpisodeInfo, self).__init__(*args, **kwargs)
     self.tvshow_id = kwargs.get('tvshow_id')
     data = tmdb.extended_episode_info(tvshow_id=self.tvshow_id,
                                       season=kwargs.get('season'),
                                       episode=kwargs.get('episode'))
     if not data:
         return None
     self.info, self.lists, self.states = data
     self.info.update_properties(imagetools.blur(
         self.info.get("thumb")))
 def __init__(self, *args, **kwargs):
     super(DialogEpisodeInfo, self).__init__(*args, **kwargs)
     self.tvshow_id = kwargs.get('tvshow_id')
     tv_info = tmdb.get_tvshow(self.tvshow_id, light=True)
     data = tmdb.extended_episode_info(tvshow_id=self.tvshow_id,
                                       season=kwargs.get('season'),
                                       episode=kwargs.get('episode'))
     if not data:
         return None
     self.info, self.lists, self.states = data
     self.info.set_info("tvshowtitle", tv_info["name"])
     image_info = imagetools.blur(self.info.get_art("thumb"))
     self.info.update_properties(image_info)
Esempio n. 7
0
 def __init__(self, *args, **kwargs):
     super(DialogEpisodeInfo, self).__init__(*args, **kwargs)
     self.tvshow_id = kwargs.get('tvshow_id')
     tv_info = tmdb.get_tvshow(self.tvshow_id, light=True)
     data = tmdb.extended_episode_info(tvshow_id=self.tvshow_id,
                                       season=kwargs.get('season'),
                                       episode=kwargs.get('episode'))
     if not data:
         return None
     self.info, self.lists, self.states = data
     self.info.set_info("tvshowtitle", tv_info["name"])
     image_info = imagetools.blur(self.info.get_art("thumb"))
     self.info.update_properties(image_info)