mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-22 15:00:35 -04:00
Fix SeasonYear rule
This commit is contained in:
parent
0d5957c3f8
commit
8303df35cc
@ -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]
|
consequence = [RemoveMatch]
|
||||||
|
|
||||||
def when(self, matches: Matches, context) -> Any:
|
def when(self, matches: Matches, context) -> Any:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user