Medialink can be installed using pipx, which is a tool to install Python CLI tools in isolated environments. This is the recommended way to install Medialink as it will not interfere with other Python packages on your system.
pipx install medialink
Medialink can also be installed using pip, which is the Python package installer. This is not recommended as it will install Medialink globally on your system and may interfere with other Python packages.
pip install medialink
python cli.py [OPTIONS] SOURCE [TARGET]
SOURCE
(required): The path to the source directory to scan for films and/or shows. Must exist and be readable.TARGET
(optional): The path to the target directory to populate. Must not exist prior unless specified elsewhere.
-
-tf, --target-films <path>
: Specify the target directory for films. Must not already exist. -
-ts, --target-shows <path>
: Specify the target directory for TV shows. Must not already exist. -
-d, --dry-run
: Perform a dry run of the operation without making any changes. -
-v, --verbose
: Enable verbose output for detailed information during the execution. -
--version
: Show the version of the CLI tool. -
--help
: Show help message and usage information.
-
Basic Usage:
python cli.py /path/to/source /path/to/target
-
Scan with Target Films Directory:
python cli.py /path/to/source --target-films /path/to/films
-
Dry Run with Verbose Output:
python cli.py /path/to/source --dry-run
If you want to contribute to Medialink, you can clone the repository and install the development dependencies using poetry. Remember to use the --with=dev
flag to install the development dependencies.
git clone
cd medialink
poetry install --with=dev # Installs dev dependencies.
poetry run medialink --help # Run the tool!
Medialink is licensed under the GPL-3.0-or-later License. See LICENSE for more information.