Exemple #1
0
 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'])]
Exemple #2
0
 def update_states(self):
     xbmc.sleep(2000)  # delay because MovieDB takes some time to update
     _, __, self.states = tmdb.extended_tvshow_info(
         tvshow_id=self.info.get_property("id"),
         cache_time=0,
         dbid=self.dbid)
     super(DialogTVShowInfo, self).update_states()
 def __init__(self, *args, **kwargs):
     super(DialogTVShowInfo, self).__init__(*args, **kwargs)
     data = tmdb.extended_tvshow_info(tvshow_id=kwargs.get('tmdb_id', False),
                                      dbid=self.dbid)
     if not data:
         return None
     self.info, self.lists, self.states = data
     if not self.info.get_info("dbid"):
         self.info.set_art("poster", utils.get_file(self.info.get_art("poster")))
     self.info.update_properties(imagetools.blur(self.info.get_art("poster")))
 def __init__(self, *args, **kwargs):
     super(DialogTVShowInfo, self).__init__(*args, **kwargs)
     data = tmdb.extended_tvshow_info(tvshow_id=kwargs.get('tmdb_id'),
                                      dbid=kwargs.get('dbid'))
     if not data:
         return None
     self.info, self.lists, self.states = data
     if not self.info.get_info("dbid"):
         self.info.set_art("poster", utils.get_file(self.info.get_art("poster")))
     self.info.update_properties(imagetools.blur(self.info.get_art("poster")))
 def update_states(self):
     xbmc.sleep(2000)  # delay because MovieDB takes some time to update
     _, __, self.states = tmdb.extended_tvshow_info(tvshow_id=self.info.get_property("id"),
                                                    cache_time=0,
                                                    dbid=self.dbid)
     super(DialogTVShowInfo, self).update_states()