modules.addons.file_relocater
File Relocater
A tool to move audio files into folder structures based on metadata. Moves files from a source library into organized subfolders under a specified root directory.
Default folder structure: /(album)/(year)/(albumartist)/ with sanitized folder names but can be changed by user.
Functions
|
Main function for the audio organizer. |
Parse command line arguments. |
|
|
Parse character replacement arguments from command line. |
Classes
|
Audio library organizer that moves files into folder structures based on metadata |
- class modules.addons.file_relocater.FileRelocater(options: Dict[str, Any])[source]
Bases:
object
Audio library organizer that moves files into folder structures based on metadata
Initialize the FileRelocater with the specified options.
- Parameters:
options (dict) – Dictionary of organization options
- __init__(options: Dict[str, Any])[source]
Initialize the FileRelocater with the specified options.
- Parameters:
options (dict) – Dictionary of organization options
- get_file_metadata(filepath: str) Dict[str, str] [source]
Extract metadata from an audio file using FFprobe.
- generate_folder_path(filepath: str) str | None [source]
Generate a folder path based on metadata using the specified format.
- move_file(source_filepath: str, destination_root: str) bool [source]
Move a single audio file to the organized folder structure.
- modules.addons.file_relocater.parse_arguments()[source]
Parse command line arguments.
- Returns:
Parsed arguments
- Return type: