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
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
def __init__(self, dirname, path, cat, force=False): self.matched = False self.original_dirname = dirname self.original_path = path self.cat = cat self.sort_string = cfg.tv_sort_string() self.cats = cfg.tv_categories() self.filename_set = '' self.match_obj = None self.extras = None self.descmatch = None self.rename_or_not = False self.show_info = {} #Check if it is a TV show on init() self.match(force)
def __init__(self, dirname, path, cat, force=False): self.matched = False self.original_dirname = dirname self.original_path = path self.cat = cat self.sort_string = cfg.tv_sort_string() self.cats = cfg.tv_categories() self.filename_set = '' self.fname = '' # Value for %fn substitution in folders self.match_obj = None self.extras = None self.descmatch = None self.rename_or_not = False self.show_info = {} #Check if it is a TV show on init() self.match(force)
def __init__(self, nzo, job_name, path, cat): self.matched = False self.original_job_name = job_name self.original_path = path self.nzo = nzo self.cat = cat self.sort_string = cfg.tv_sort_string() self.cats = cfg.tv_categories() self.filename_set = '' self.fname = '' # Value for %fn substitution in folders self.final_path = '' self.match_obj = None self.extras = None self.rename_or_not = False self.show_info = {} # Check if it is a TV show on init() self.match()