本文整理匯總了Python中resources.lib.TheMovieDB.extended_episode_info方法的典型用法代碼示例。如果您正苦於以下問題:Python TheMovieDB.extended_episode_info方法的具體用法?Python TheMovieDB.extended_episode_info怎麽用?Python TheMovieDB.extended_episode_info使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類resources.lib.TheMovieDB
的用法示例。
在下文中一共展示了TheMovieDB.extended_episode_info方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: update_states
# 需要導入模塊: from resources.lib import TheMovieDB [as 別名]
# 或者: from resources.lib.TheMovieDB import extended_episode_info [as 別名]
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()
示例2: __init__
# 需要導入模塊: from resources.lib import TheMovieDB [as 別名]
# 或者: from resources.lib.TheMovieDB import extended_episode_info [as 別名]
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")))
示例3: __init__
# 需要導入模塊: from resources.lib import TheMovieDB [as 別名]
# 或者: from resources.lib.TheMovieDB import extended_episode_info [as 別名]
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)