def __init__(self): Transformer.__init__(self, -190) self.groups_container = PropertiesContainer() self._allowed_groupname_pattern = r'[\w@#€£$&]' self._forbidden_groupname_lambda = [lambda elt: elt in ['rip', 'by', 'for', 'par', 'pour', 'bonus'], lambda elt: self._is_number(elt), ] # If the previous property in this list, the match will be considered as safe # and group name can contain a separator. self.previous_safe_properties = ['videoCodec', 'format', 'videoApi', 'audioCodec'] self.groups_container.sep_replace_char = '-' self.groups_container.canonical_from_pattern = False self.groups_container.enhance_patterns = True self.groups_container.register_property('releaseGroup', None, self._allowed_groupname_pattern + '+') self.groups_container.register_property('releaseGroup', None, self._allowed_groupname_pattern + '+-' + self._allowed_groupname_pattern + '+')
def __init__(self): Transformer.__init__(self, 190)
def __init__(self): Transformer.__init__(self, -200)
def __init__(self): Transformer.__init__(self, -170) # list of common words which could be interpreted as countries, but which # are far too common to be able to say they represent a country self.country_common_words = frozenset(["bt", "bb"])
def __init__(self): Transformer.__init__(self, 250)