Initial commit
This commit is contained in:
18
src/watfag/parsers/generic/repack.py
Normal file
18
src/watfag/parsers/generic/repack.py
Normal file
@@ -0,0 +1,18 @@
|
||||
import regex as re
|
||||
|
||||
from parsers.generic import GenericParser
|
||||
from parsers.generic.parsers import CheckParser
|
||||
from 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
|
||||
Reference in New Issue
Block a user