kodiRename¶
External Functions¶
Internal Functions¶
- kodiRename.kodiRename.collectConfig(config_path: str = 'config.ini') ConfigSpec[source]¶
Parse Configuration from file. If file does not exist returns default configuration
- Parameters:
config_path – Path to configuration file
- Returns:
Populated configuration
- kodiRename.kodiRename.configLogger(level: str, log_file: str | None = None, log_std: bool = False) Logger[source]¶
Configure logging object
- Parameters:
level – String representation of log level
log_file – Path to log file
log_std – If True output log to standard output
- Returns:
Logging Object
- kodiRename.kodiRename.parseArgs(config_data: ConfigSpec) Tuple[Namespace, ConfigSpec][source]¶
Parse command line arguments
- Params config_data:
Configuration data, will be modified and returned
- Returns:
Tuple containing parsed arguments and modified configuration information
- kodiRename.kodiRename.init(config_path: str = 'config.ini') int[source]¶
Write default configuration to file
- Parameters:
config_path – Path to configuration file
- Returns:
Status Code
- kodiRename.kodiRename.collect(config_data: ConfigSpec) int[source]¶
Collect Move and TV information and serialize
- Parameters:
config – Configuration object
- Returns:
Status Code
- kodiRename.kodiRename.rename(config_data: ConfigSpec, dry_run: bool = False) int[source]¶
Perform rename operations from serialized data
- Parameters:
config – Configuration object
dry_run – If True, will perform as dry run of rename operation
- Returns:
Status Code
- kodiRename.kodiRename.clean(config_data: ConfigSpec, dry_run: bool = False) int[source]¶
Perform clean operation
- Parameters:
config – Configuration object
dry_run – If True, will perform as dry run of clean operation
- Returns:
Status Code