本文整理汇总了Python中sickbeard.tv.TVShow.anime方法的典型用法代码示例。如果您正苦于以下问题:Python TVShow.anime方法的具体用法?Python TVShow.anime怎么用?Python TVShow.anime使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类sickbeard.tv.TVShow
的用法示例。
在下文中一共展示了TVShow.anime方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test
# 需要导入模块: from sickbeard.tv import TVShow [as 别名]
# 或者: from sickbeard.tv.TVShow import anime [as 别名]
def test(self):
show = TVShow(tvdb_id)
show.name = data[0]
if data[1]:
show.anime = 1
show.saveToDB()
showList = [show]
sceneName = data[2]
result = helpers.get_show_by_name(sceneName, showList, False)
if not result:
self.assertEqual(False, show.tvdbid)
return False
self.assertEqual(result.tvdbid, show.tvdbid)
示例2: test
# 需要导入模块: from sickbeard.tv import TVShow [as 别名]
# 或者: from sickbeard.tv.TVShow import anime [as 别名]
def test(self):
global searchItems
searchItems = curData["i"]
show = TVShow(tvdbdid)
show.name = show_name
show.quality = curData["q"]
if curData["anime"]:
show.anime = 1
show.saveToDB()
sickbeard.showList.append(show)
for epNumber in curData["e"]:
episode = TVEpisode(show, curData["s"], epNumber)
episode.status = c.WANTED
if "ab" in curData:
episode.absolute_number = curData["ab"]
episode.saveToDB()
bestResult = search.findEpisode(episode, forceSearch)
if not bestResult:
self.assertEqual(curData["b"], bestResult)
self.assertEqual(curData["b"], bestResult.name) #first is expected, second is choosen one