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 GPL-3.0-or-later 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.3.tar.gz
.
File metadata
- Download URL: medialink-0.1.3.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 | 563d8c8729d230c006c4fbec908c439db08114bacabbc4593eebc80768588375 |
|
MD5 | 626d6fc2bffdccc323a65e2c392cf0af |
|
BLAKE2b-256 | 1faddf176729baaad9389a43a91cd61506e66980e6d8367f9ad029b692cbd58b |
File details
Details for the file medialink-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: medialink-0.1.3-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 | b7c578f66aa550107597cb2eb7e8e5d0e8f93f4881b6c70e44b4e2843130a991 |
|
MD5 | 43cfc1a2e648d3681ef3117d02986830 |
|
BLAKE2b-256 | 6088c02d39975877fdedf00977d69e11d1bb6f529c97fe27219163f624f34363 |