本文整理汇总了Python中sickbeard.show_name_helpers.makeSceneSearchString函数的典型用法代码示例。如果您正苦于以下问题:Python makeSceneSearchString函数的具体用法?Python makeSceneSearchString怎么用?Python makeSceneSearchString使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了makeSceneSearchString函数的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _get_episode_search_strings
def _get_episode_search_strings(self, ep_obj):
# # tvrname is better for most shows
# if ep_obj.show.tvrname:
# searchStr = ep_obj.show.tvrname + " S%02dE%02d"%(ep_obj.season, ep_obj.episode)
# else:
# searchStr = ep_obj.show.name + " S%02dE%02d"%(ep_obj.season, ep_obj.episode)
# return [searchStr]
return [x for x in show_name_helpers.makeSceneSearchString(ep_obj)]
示例2: _get_episode_search_strings
def _get_episode_search_strings(self, ep_obj):
sceneSearchStrings = set(show_name_helpers.makeSceneSearchString(ep_obj))
# search for all show names and episode numbers like (%2b"show-a"%2b"episode-a")+(%2b"show-b"%2b"episode-b") in a single search
nzbMatrixSearchStrings = []
for searchString in sceneSearchStrings:
searchWords = searchString.split('.')
nzbMatrixSearchStrings.append('(+"' + '"+"'.join(searchWords) + '")')
return ['("' + '","'.join(sceneSearchStrings) + '")']
示例3: _get_episode_search_strings
def _get_episode_search_strings(self, ep_obj):
searchStr = [x for x in show_name_helpers.makeSceneSearchString(ep_obj)]
if not searchStr:
if ep_obj.show.tvrname:
searchStr = ep_obj.show.tvrname + " S%02dE%02d"%(ep_obj.season, ep_obj.episode)
else:
searchStr = ep_obj.show.name + " S%02dE%02d"%(ep_obj.season, ep_obj.episode)
logger.log(u"_get_episode_search_strings: " + searchStr, logger.DEBUG)
return [searchStr]
else:
for x in searchStr:
logger.log(u"_get_episode_search_strings: " + x, logger.DEBUG)
return searchStr
示例4: _get_episode_search_strings
def _get_episode_search_strings(self, ep_obj):
if not ep_obj:
return [{}]
to_return = [];
search_strings = show_name_helpers.makeSceneSearchString(ep_obj);
if ep_obj.show.rls_require_words:
for word in ep_obj.show.rls_require_words.split(','):
for search_string in search_strings:
to_return.append(search_string + " " + word.strip())
return to_return
else:
return [x for x in search_strings]
示例5: _get_episode_search_strings
def _get_episode_search_strings(self, ep_obj, add_string=''):
return [x for x in show_name_helpers.makeSceneSearchString(self.show, ep_obj)]
示例6: _get_episode_search_strings
def _get_episode_search_strings(self, show, season, episode, abd=False):
return [x for x in show_name_helpers.makeSceneSearchString(show, season, episode, abd)]
示例7: _get_episode_search_strings
def _get_episode_search_strings(self, season, episode, add_string=""):
return ["^" + x for x in show_name_helpers.makeSceneSearchString(self.show, season, episode)]
示例8: _get_episode_search_strings
def _get_episode_search_strings(self, ep_obj):
sceneSearchStrings = set(show_name_helpers.makeSceneSearchString(ep_obj))
# search for all show names and episode numbers like ("a","b","c") in a single search
return ['("' + '","'.join(sceneSearchStrings) + '")']
示例9: _episode_strings
def _episode_strings(self, *args, **kwargs):
return [{'Episode': show_name_helpers.makeSceneSearchString(self.show, *args)}]
示例10: _get_episode_search_strings
def _get_episode_search_strings(self, ep_obj):
return ['^' + x for x in show_name_helpers.makeSceneSearchString(ep_obj)]
示例11: _get_episode_search_strings
def _get_episode_search_strings(self, ep_obj):
# names = [(ep_obj.show.name + " " + str(ep_obj.absolute_number)).encode('utf-8')]
names = show_name_helpers.makeSceneSearchString(ep_obj)
logger.log("_get_episode_search_strings : name : " + str(names))
return names
示例12: _episode_strings
def _episode_strings(self, ep_obj):
return [x for x in show_name_helpers.makeSceneSearchString(self.show, ep_obj)]
示例13: _get_episode_search_strings
def _get_episode_search_strings(self, ep_obj, **kwargs):
return [x.replace('.', ' ') for x in show_name_helpers.makeSceneSearchString(self.show, ep_obj)]
示例14: _get_episode_search_strings
def _get_episode_search_strings(self, ep_obj, add_string=""):
return [x.replace(".", " ") for x in show_name_helpers.makeSceneSearchString(self.show, ep_obj)]