From 8303df35cc5b746bb79c85af0526250c8d0e4cc4 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Wed, 1 May 2024 16:20:01 +0200 Subject: [PATCH] Fix SeasonYear rule --- scanner/matcher/parser/rules.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scanner/matcher/parser/rules.py b/scanner/matcher/parser/rules.py index 5ff1b868..03cc0ad4 100644 --- a/scanner/matcher/parser/rules.py +++ b/scanner/matcher/parser/rules.py @@ -357,7 +357,9 @@ class SeasonYearDedup(Rule): ``` """ - priority = POST_PROCESS + # This rules does the opposite of the YearSeason rule of guessit (with POST_PROCESS priority) + # To overide it, we need the -1. (rule: https://github.com/guessit-io/guessit/blob/develop/guessit/rules/processors.py#L195) + priority = POST_PROCESS - 1 consequence = [RemoveMatch] def when(self, matches: Matches, context) -> Any: