Ejemplo n.º 1
0
 def match(self, force=False):
     ''' Checks the regex for a match, if so set self.match to true '''
     if force or (cfg.enable_tv_sorting() and cfg.tv_sort_string()):
         if force or (not self.cats) or (self.cat and self.cat.lower() in self.cats) or (not self.cat and 'None' in self.cats):
             #First check if the show matches TV episode regular expressions. Returns regex match object
             self.match_obj, self.extras = check_regexs(self.original_dirname, series_match, double=True)
             if self.match_obj:
                 logging.debug("Found TV Show - Starting folder sort (%s)", self.original_dirname)
                 self.matched = True
Ejemplo n.º 2
0
 def match(self, force=False):
     """ Checks the regex for a match, if so set self.match to true """
     if force or (cfg.enable_tv_sorting() and cfg.tv_sort_string()):
         if force or (not self.cats) or (self.cat and self.cat.lower() in self.cats) or (not self.cat and 'None' in self.cats):
             # First check if the show matches TV episode regular expressions. Returns regex match object
             self.match_obj, self.extras = check_regexs(self.original_dirname, series_match)
             if self.match_obj:
                 logging.debug("Found TV Show (%s)", self.original_dirname)
                 self.matched = True