本文整理汇总了Python中sickbeard.tvcache.TVCache.find_needed_episodes方法的典型用法代码示例。如果您正苦于以下问题:Python TVCache.find_needed_episodes方法的具体用法?Python TVCache.find_needed_episodes怎么用?Python TVCache.find_needed_episodes使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类sickbeard.tvcache.TVCache
的用法示例。
在下文中一共展示了TVCache.find_needed_episodes方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: GenericProvider
# 需要导入模块: from sickbeard.tvcache import TVCache [as 别名]
# 或者: from sickbeard.tvcache.TVCache import find_needed_episodes [as 别名]
#.........这里部分代码省略.........
return bool(self.enabled)
@property
def daily_enabled(self):
return int(self.enable_daily)
@property
def backlog_enabled(self):
return int(self.enable_backlog)
@property
def search_fallback_enabled(self):
return int(self.search_fallback)
@property
def can_daily(self):
return self.ability_status & self.PROVIDER_DAILY != 0
@property
def can_backlog(self):
return self.ability_status & self.PROVIDER_BACKLOG != 0 and self.supports_backlog
def status(self):
return self.ProviderStatus.get(self.ability_status)
@staticmethod
def make_id(name):
if not name:
return ''
return re.sub(r'[^\w\d_]', '_', str(name).strip().lower())
def search_rss(self, episodes):
return self.cache.find_needed_episodes(episodes)
def seed_ratio(self): # pylint: disable=no-self-use
return ''
def _check_auth(self): # pylint: disable=no-self-use
return True
def login(self): # pylint: disable=no-self-use
return True
def search(self, search_params, age=0, ep_obj=None): # pylint: disable=unused-argument,no-self-use
return []
def _get_result(self, episodes): # pylint: disable=no-self-use
return SearchResult(episodes)
def _get_episode_search_strings(self, episode, add_string=''):
if not episode:
return []
search_string = {
'Episode': []
}
for show_name in allPossibleShowNames(episode.show, season=episode.scene_season):
episode_string = show_name + ' '
episode_string_fallback = None
if episode.show.air_by_date:
episode_string += str(episode.airdate).replace('-', ' ')
elif episode.show.sports:
episode_string += str(episode.airdate).replace('-', ' ')