本文整理汇总了Python中sickbeard.tv.TVEpisode.absolute_number方法的典型用法代码示例。如果您正苦于以下问题:Python TVEpisode.absolute_number方法的具体用法?Python TVEpisode.absolute_number怎么用?Python TVEpisode.absolute_number使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类sickbeard.tv.TVEpisode
的用法示例。
在下文中一共展示了TVEpisode.absolute_number方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test
# 需要导入模块: from sickbeard.tv import TVEpisode [as 别名]
# 或者: from sickbeard.tv.TVEpisode import absolute_number [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