upsies.trackers.ptp.config
Concrete TrackerConfigBase subclass for PTP
Classes
- class upsies.trackers.ptp.config.PtpTrackerConfig(*, exclude: ListOfRegex, ~pydantic.functional_validators.BeforeValidator(func=~upsies.utils.types.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://passthepopcorn.me', username: str = '', password: SecretStr = '', cookies_filepath: str = '', announce_url: SecretStr = '', image_host: ListOfImagehost, ~pydantic.functional_validators.BeforeValidator(func=~upsies.utils.types.ListOfImagehost, json_schema_input_type=PydanticUndefined)] = ('ptpimg', 'freeimage'), screenshots_from_movie: Integer, ~pydantic.functional_validators.BeforeValidator(func=~upsies.utils.types.Integer.<locals>.Integer, json_schema_input_type=PydanticUndefined)] = 3, screenshots_from_episode: Integer, ~pydantic.functional_validators.BeforeValidator(func=~upsies.utils.types.Integer.<locals>.Integer, json_schema_input_type=PydanticUndefined)] = 2, confirm: Bool, ~pydantic.functional_validators.BeforeValidator(func=~upsies.utils.types.Bool, json_schema_input_type=PydanticUndefined)] = 'no')[source]
Bases:
TrackerConfigBase- defaults = PtpTrackerConfigDefaults(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://passthepopcorn.me', username='', password=SecretStr(''), cookies_filepath='', announce_url=SecretStr(''), image_host=ListOfImagehost((Imagehost('ptpimg', options=('freeimage', 'imgbb', 'pixhost', 'ptpimg', 'ra')), Imagehost('freeimage', options=('freeimage', 'imgbb', 'pixhost', 'ptpimg', 'ra')))), screenshots_from_movie=Integer(3, min=3, max=10), screenshots_from_episode=Integer(2, min=2, max=10), 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].