当前位置: 首页>>代码示例>>Python>>正文


Python show_name_helpers.makeSceneSearchString函数代码示例

本文整理汇总了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)]
开发者ID:Elky666,项目名称:SickRage,代码行数:8,代码来源:nzbclub.py

示例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) + '")']
开发者ID:Pakoach,项目名称:Sick-Beard-Animes,代码行数:10,代码来源:nzbmatrix.py

示例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
开发者ID:poetter,项目名称:Sick-Beard--german-support,代码行数:13,代码来源:nzbindex.py

示例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]
开发者ID:adlerre,项目名称:Sick-Beard,代码行数:17,代码来源:binsearch.py

示例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)]
开发者ID:EggieCode,项目名称:SickRage,代码行数:2,代码来源:nyaatorrents.py

示例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)]
开发者ID:jfrmn,项目名称:SickBeard-TVRage,代码行数:2,代码来源:omgwtfnzbs.py

示例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)]
开发者ID:jvdpoll,项目名称:SickBeard-TVRage,代码行数:2,代码来源:nzbsrus.py

示例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) + '")']
开发者ID:mburdish,项目名称:Sick-Beard,代码行数:6,代码来源:nzbmatrix.py

示例9: _episode_strings

 def _episode_strings(self, *args, **kwargs):
     return [{'Episode': show_name_helpers.makeSceneSearchString(self.show, *args)}]
开发者ID:JackDandy,项目名称:SickGear,代码行数:2,代码来源:tokyotoshokan.py

示例10: _get_episode_search_strings

 def _get_episode_search_strings(self, ep_obj):
     return ['^' + x for x in show_name_helpers.makeSceneSearchString(ep_obj)]
开发者ID:DarkSpikeX,项目名称:SickBeard-TVRage,代码行数:2,代码来源:nzbs_org_old.py

示例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
开发者ID:stephanehenry27,项目名称:Sickbeard-anime,代码行数:5,代码来源:nyaa.py

示例12: _episode_strings

    def _episode_strings(self, ep_obj):

        return [x for x in show_name_helpers.makeSceneSearchString(self.show, ep_obj)]
开发者ID:JackDandy,项目名称:SickGear,代码行数:3,代码来源:omgwtfnzbs.py

示例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)]
开发者ID:joshguerette,项目名称:SickGear,代码行数:3,代码来源:tokyotoshokan.py

示例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)]
开发者ID:normtown,项目名称:SickRage,代码行数:2,代码来源:tokyotoshokan.py


注:本文中的sickbeard.show_name_helpers.makeSceneSearchString函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。