upsies.trackers.ant.config

Concrete TrackerConfigBase subclass for ANT

Classes

class upsies.trackers.ant.config.AntTrackerConfig(*, exclude: Annotated[ListOfRegex, BeforeValidator(func=ListOfRegex, json_schema_input_type=PydanticUndefined)] = ('\\.(?i:sfv|md5)$', '/(?:\\.fuse_hidden\\d+|\\.Trash/.*|\\.Trash-\\d+/.*|\\.DS_Store|\\.Trashes/.*|desktop\\.ini|Thumbs\\.db|@eaDir/.*|.*@SynoEAStream|.*@SynoResource|.*\\.miniso|.*dvdid\\.xml|.*\\.nzb|.*\\.par2|.*\\.srr|.*\\.srs|.*\\.torrent)$', '(?i:^(?!.*/(BDMV|VIDEO_TS)/).*\\.(png|jpg|jpeg)$)', '\\.(?i:nfo)$', '(?i:/[!_0-]?sample/|[^/][\\.\\-_ ]sample\\.mkv|/sample[\\!\\-_].+\\.mkv|[\\.\\-_!]?sample-[a-zA-Z0-9]+\\.mkv|/[!#$%&*+\\-\\.]?sample\\.mkv)'), add_to: str = '', copy_to: str = '', base_url: str = 'https://anthelion.me', apikey: SecretStr = '', announce_url: SecretStr = '', anonymous: Annotated[Bool, BeforeValidator(func=Bool, json_schema_input_type=PydanticUndefined)] = 'no', confirm: Annotated[Bool, BeforeValidator(func=Bool, json_schema_input_type=PydanticUndefined)] = 'no')[source]

Bases: TrackerConfigBase

defaults = AntTrackerConfigDefaults(exclude=ListOfRegex((Regex('\\.(?i:sfv|md5)$'), Regex('/(?:\\.fuse_hidden\\d+|\\.Trash/.*|\\.Trash-\\d+/.*|\\.DS_Store|\\.Trashes/.*|desktop\\.ini|Thumbs\\.db|@eaDir/.*|.*@SynoEAStream|.*@SynoResource|.*\\.miniso|.*dvdid\\.xml|.*\\.nzb|.*\\.par2|.*\\.srr|.*\\.srs|.*\\.torrent)$'), Regex('(?i:^(?!.*/(BDMV|VIDEO_TS)/).*\\.(png|jpg|jpeg)$)'), Regex('\\.(?i:nfo)$'), Regex('(?i:/[!_0-]?sample/|[^/][\\.\\-_ ]sample\\.mkv|/sample[\\!\\-_].+\\.mkv|[\\.\\-_!]?sample-[a-zA-Z0-9]+\\.mkv|/[!#$%&*+\\-\\.]?sample\\.mkv)'))), add_to='', copy_to='', base_url='https://anthelion.me', apikey=SecretStr(''), announce_url=SecretStr(''), anonymous=Bool('no'), confirm=Bool('no'))

Class property that holds an instance of this class with default values

See _CreateDefaults.

model_config = {'arbitrary_types_allowed': True, 'extra': 'forbid', 'validate_assignment': True, 'validate_default': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].