upsies.trackers.rfx.config
Concrete TrackerConfigBase subclass for RFX
Classes
- class upsies.trackers.rfx.config.RfxTrackerConfig(*, exclude: ListOfRegex, ~pydantic.functional_validators.BeforeValidator(func=~upsies.utils.types.ListOfRegex, json_schema_input_type=PydanticUndefined)] = ('/(?:\\.fuse_hidden\\d+|\\.Trash/.*|\\.Trash-\\d+/.*|\\.DS_Store|\\.Trashes/.*|desktop\\.ini|Thumbs\\.db|@eaDir/.*|.*@SynoEAStream|.*@SynoResource|.*\\.miniso|.*dvdid\\.xml|.*\\.nzb|.*\\.par2|.*\\.srr|.*\\.srs|.*\\.torrent)$', ), add_to: str = '', copy_to: str = '', upload_url: str = 'https://reelflix.cc/api/torrents/upload', announce_url: str = 'https://reelflix.cc/announce', announce_passkey: SecretStr = '', apikey: SecretStr = '', anonymous: Bool, ~pydantic.functional_validators.BeforeValidator(func=~upsies.utils.types.Bool, json_schema_input_type=PydanticUndefined)] = 'no', image_host: ListOfImagehost, ~pydantic.functional_validators.BeforeValidator(func=~upsies.utils.types.ListOfImagehost, json_schema_input_type=PydanticUndefined)] = ('imgbox', 'freeimage'), screenshots_count: Integer, ~pydantic.functional_validators.BeforeValidator(func=~upsies.utils.types.Integer.<locals>.Integer, json_schema_input_type=PydanticUndefined)] = 3, confirm: Bool, ~pydantic.functional_validators.BeforeValidator(func=~upsies.utils.types.Bool, json_schema_input_type=PydanticUndefined)] = 'no')[source]
Bases:
TrackerConfigBase- defaults = RfxTrackerConfigDefaults(exclude=ListOfRegex((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)$'),)), add_to='', copy_to='', upload_url='https://reelflix.cc/api/torrents/upload', announce_url='https://reelflix.cc/announce', announce_passkey=SecretStr(''), apikey=SecretStr(''), anonymous=Bool('no'), image_host=ListOfImagehost((Imagehost('imgbox', options=('freeimage', 'imgbb', 'imgbox', 'pixhost', 'ptpimg', 'ra', 'rfximg')), Imagehost('freeimage', options=('freeimage', 'imgbb', 'imgbox', 'pixhost', 'ptpimg', 'ra', 'rfximg')))), screenshots_count=Integer(3, min=3, 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].