Files
WATFAG/src/watfag/parsers/generic/repack.py

19 lines
581 B
Python

import regex as re
from watfag.parsers.generic import GenericParser
from watfag.parsers.generic.parsers import CheckParser
from watfag.parsers.generic.watfag import Repack
checks = {
re.compile(r"repack", re.IGNORECASE): Repack.REPACK,
re.compile(r"proper", re.IGNORECASE): Repack.PROPER
}
class RepackParser(CheckParser, GenericParser):
def __init__(self, release):
super().__init__(release)
self.checks = checks
self.remove_checks = [] # No remove checks for repack
self.attribute_name = "repack"
self.default = Repack.NOT