Config API¶
Auto-generated reference for the Config object that models the
unshackle configuration file. For a human-friendly walkthrough of every key, see the
Configuration Reference.
Config
¶
get_folder_template
¶
Resolve the folder template for the given title kind.
kind: one of "movies", "series", "songs", "albums". Falls back to the legacy single-string folder template, then "".
get_template_separator
¶
Get the filename separator for the given template type.
Analyzes the active template to determine whether it uses dots or spaces between variables. Falls back to dot separator (scene-style) by default.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
template_type
|
str
|
One of "movies", "series", or "songs". |
'movies'
|
resolve_decryption
¶
Pick the decryption tool for a service (case-insensitive), falling back to default.
resolve_cdm_name
¶
Resolve a service's top-level CDM entry (case-insensitive), with default fallback.
get_config_path
¶
Get Path to Config from any one of the possible locations.
Returns None if no config file could be found.