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 __init__(self, *args, **kwargs): if Utils.NETFLIX_VIEW == 'true': super(DialogSeasonInfo, self).__init__(*args, **kwargs) self.type = 'Season' self.tvshow_id = kwargs.get('tvshow_id') data = TheMovieDB.extended_season_info(tvshow_id=self.tvshow_id, season_number=kwargs.get('season')) if not data: return None self.info, self.data = data if 'dbid' not in self.info: self.info['poster'] = Utils.get_file(url=self.info.get('poster', '')) self.listitems = [ (2000, self.data['episodes']), (1000, self.data['actors']), (750, self.data['crew']), (1250, self.data['images']) ] else: super(DialogSeasonInfo, self).__init__(*args, **kwargs) self.type = 'Season' self.tvshow_id = kwargs.get('tvshow_id') data = TheMovieDB.extended_season_info(tvshow_id=self.tvshow_id, season_number=kwargs.get('season')) if not data: return None self.info, self.data = data if 'dbid' not in self.info: self.info['poster'] = Utils.get_file(url=self.info.get('poster', '')) self.info['ImageFilter'], self.info['ImageColor'] = ImageTools.filter_image(input_img=self.info.get('poster', ''), radius=25) self.listitems = [ (2000, self.data['episodes']), (1150, self.data['videos']), (1000, self.data['actors']), (750, self.data['crew']), (1250, self.data['images']) ]
def __init__(self, *args, **kwargs): if Utils.NETFLIX_VIEW == 'true': super(DialogTVShowInfo, self).__init__(*args, **kwargs) self.type = 'TVShow' data = TheMovieDB.extended_tvshow_info(tvshow_id=kwargs.get( 'tmdb_id', False), dbid=self.dbid) if not data: return None self.info, self.data = data if 'dbid' not in self.info: self.info['poster'] = Utils.get_file( self.info.get('poster', '')) self.listitems = [(250, self.data['seasons']), (150, self.data['similar']), (1000, self.data['actors']), (750, self.data['crew']), (550, self.data['studios']), (1450, self.data['networks']), (850, self.data['genres']), (1250, self.data['images']), (1350, self.data['backdrops'])] else: super(DialogTVShowInfo, self).__init__(*args, **kwargs) self.type = 'TVShow' data = TheMovieDB.extended_tvshow_info(tvshow_id=kwargs.get( 'tmdb_id', False), dbid=self.dbid) if not data: return None self.info, self.data = data if 'dbid' not in self.info: self.info['poster'] = Utils.get_file( self.info.get('poster', '')) self.info['ImageFilter'], self.info[ 'ImageColor'] = ImageTools.filter_image( input_img=self.info.get('poster', ''), radius=25) self.listitems = [(250, self.data['seasons']), (150, self.data['similar']), (1150, self.data['videos']), (1000, self.data['actors']), (750, self.data['crew']), (550, self.data['studios']), (1450, self.data['networks']), (650, TheMovieDB.merge_with_cert_desc( self.data['certifications'], 'tv')), (850, self.data['genres']), (1250, self.data['images']), (1350, self.data['backdrops'])]
def __init__(self, *args, **kwargs): super(DialogActorInfo, self).__init__(*args, **kwargs) self.id = kwargs.get('id', False) self.type = 'Actor' data = TheMovieDB.extended_actor_info(actor_id=self.id) 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 = [ (150, self.data['movie_roles']), (250, self.data['tvshow_roles']), (450, self.data['images']), (550, Utils.merge_dict_lists(self.data['movie_crew_roles'])), (650, Utils.merge_dict_lists(self.data['tvshow_crew_roles'])), (750, self.data['tagged_images']) ]