Medialink is a Python CLI-tool for bringing order to your digital film and tv-show library.
Project description
Medialink
Medialink is a Python CLI-tool for bringing order to your digital film and tv-show library. From a messy collection of badly structured folders and files, Medialink can generate a new folder structure with properly named files and folders for use with services such as Plex, Emby, and Jellyfin. Medialink uses links to the original files, so no files are copied or moved. Since the original files are not modified or moved, it allows torrents and other downloads to continue seeding without interruption.Installation
pipx (Recommended)
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
pip
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
Usage
python cli.py [OPTIONS] SOURCE [TARGET]
Arguments
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.
Options
-
-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.
Examples
-
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
Developers
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!
License
Medialink is licensed under the MIT License. See LICENSE for more information.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file medialink-0.1.2.tar.gz
.
File metadata
- Download URL: medialink-0.1.2.tar.gz
- Upload date:
- Size: 19.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.10.12 Linux/5.15.153.1-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72b1f72d3445c5c51c9e4dc5cef65aca208f31034c9bb1bc0b608928da718285 |
|
MD5 | 89393f33ed0243682bbde18b0e4bb4e1 |
|
BLAKE2b-256 | 2d143d7cd9beb5bb339ff5b01de117f2c44b63e7de30953f5c99d5c7716f13a4 |
File details
Details for the file medialink-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: medialink-0.1.2-py3-none-any.whl
- Upload date:
- Size: 20.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.10.12 Linux/5.15.153.1-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3555a8fc3a9fa38744261976f124f2b7d1b08cf573e8a41394a6c4076b0a350b |
|
MD5 | 245e3463eaba37bd41c8a5f5bf95a674 |
|
BLAKE2b-256 | 27f68af1bb93711da3d83a51c8c85a68d5b8d3fb671d689211d46b66619258ea |