|
|
@ -357,6 +357,7 @@ class SeriesSorter(BaseSorter): |
|
|
|
def match(self): |
|
|
|
"""Try to guess series info if config and category sort out or force is set""" |
|
|
|
if self.force or (cfg.enable_tv_sorting() and cfg.tv_sort_string() and self.cat.lower() in self.cats): |
|
|
|
if not self.guess: |
|
|
|
self.guess = guess_what(self.original_job_name, sort_type="episode") |
|
|
|
if self.guess.get("type") == "episode" and "date" not in self.guess: |
|
|
|
logging.debug("Using tv sorter for %s", self.original_job_name) |
|
|
@ -424,6 +425,7 @@ class MovieSorter(BaseSorter): |
|
|
|
def match(self): |
|
|
|
"""Try to guess movie info if config and category sort out or force is set""" |
|
|
|
if self.force or (cfg.enable_movie_sorting() and self.sort_string and self.cat.lower() in self.cats): |
|
|
|
if not self.guess: |
|
|
|
self.guess = guess_what(self.original_job_name, sort_type="movie") |
|
|
|
if self.guess.get("type") == "movie": |
|
|
|
logging.debug("Using movie sorter for %s", self.original_job_name) |
|
|
@ -509,6 +511,7 @@ class DateSorter(BaseSorter): |
|
|
|
def match(self): |
|
|
|
"""Checks the category for a match, if so set self.matched to true""" |
|
|
|
if self.force or (cfg.enable_date_sorting() and self.sort_string and self.cat.lower() in self.cats): |
|
|
|
if not self.guess: |
|
|
|
self.guess = guess_what(self.original_job_name, sort_type="episode") |
|
|
|
if self.guess.get("type") == "episode" and "date" in self.guess: |
|
|
|
logging.debug("Using date sorter for %s", self.original_job_name) |
|
|
|