Esempio n. 1
0
    def _episode_strings(self, ep_obj, **kwargs):

        return [
            x.replace('.', ' ')
            for x in show_name_helpers.makeSceneSearchString(
                self.show, ep_obj)
        ]
Esempio n. 2
0
    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) + '")']
Esempio n. 3
0
 def _episode_strings(self, *args, **kwargs):
     return [{
         'Episode':
         show_name_helpers.makeSceneSearchString(self.show,
                                                 *args,
                                                 ignore_wl=True,
                                                 **kwargs)
     }]
Esempio n. 4
0
 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)]
Esempio n. 5
0
 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)]
Esempio n. 6
0
 def _get_episode_search_strings(self,
                                 show,
                                 season,
                                 episode,
                                 add_string=''):
     return [
         '^' + x for x in show_name_helpers.makeSceneSearchString(
             show, season, episode)
     ]
Esempio n. 7
0
    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) + '")']
Esempio n. 8
0
    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) + '")']
 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
Esempio n. 10
0
    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]
Esempio n. 11
0
 def _get_episode_search_strings(self, season, episode, add_string=""):
     return ["^" + x for x in show_name_helpers.makeSceneSearchString(self.show, season, episode)]
Esempio n. 12
0
    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) + '")']
Esempio n. 13
0
 def _episode_strings(self, *args, **kwargs):
     return [{'Episode': show_name_helpers.makeSceneSearchString(self.show, *args)}]
Esempio n. 14
0
 def _get_episode_search_strings(self, ep_obj):
     return ['^' + x for x in show_name_helpers.makeSceneSearchString(ep_obj)]
Esempio n. 15
0
    def _episode_strings(self, ep_obj):

        return [
            x for x in show_name_helpers.makeSceneSearchString(
                self.show, ep_obj)
        ]
Esempio n. 16
0
 def _get_episode_search_strings(self, ep_obj, add_string=''):
     return [
         x for x in show_name_helpers.makeSceneSearchString(
             self.show, ep_obj)
     ]
Esempio n. 17
0
 def _get_episode_search_strings(self, ep_obj, add_string=''):
     return [x for x in show_name_helpers.makeSceneSearchString(self.show, ep_obj)]
Esempio n. 18
0
    def _get_episode_search_strings(self, ep_obj, **kwargs):

        return [x.replace('.', ' ') for x in show_name_helpers.makeSceneSearchString(self.show, ep_obj)]
Esempio n. 19
0
	def _get_episode_search_strings(self, ep_obj):
		self.searchShow = ep_obj.show.name
		self.searchShow = self.searchShow.replace(" ",".")
		return ['^'+x for x in show_name_helpers.makeSceneSearchString(ep_obj,1)]
Esempio n. 20
0
 def _get_episode_search_strings(self, show, season, episode, abd=False):
     return [x for x in show_name_helpers.makeSceneSearchString(show, season, episode, abd)]
Esempio n. 21
0
 def _get_episode_search_strings(self, show, season, episode, abd=False):
     return [
         x for x in show_name_helpers.makeSceneSearchString(
             show, season, episode, abd)
     ]
Esempio n. 22
0
 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
 def _get_episode_search_strings(self, ep_obj):
     return [
         '^' + x for x in show_name_helpers.makeSceneSearchString(ep_obj)
     ]
Esempio n. 24
0
    def _episode_strings(self, ep_obj):

        return [x for x in show_name_helpers.makeSceneSearchString(self.show, ep_obj)]
Esempio n. 25
0
 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
Esempio n. 26
0
 def _get_episode_search_strings(self, ep_obj, add_string=""):
     return [x.replace(".", " ") for x in show_name_helpers.makeSceneSearchString(self.show, ep_obj)]