https://m3u-manage.readthedocs.io
Tools to create amd manage an m3u playlist
Overview
Installation
pip install m3u-manage
Usage
Analyze
Analyze a playlist for the most common terms appearing in filenames.
m3um analyze DIRECTORY_NAME
Produces output like:
m3u-manage 0.2.2 90: cbc 47: true 47: season 45: patrol
Mesh
Create interleaved playlists by inserting from playlists with even spacing.
m3um mesh -o OUTPUT.m3u FILE1.m3u FILE2.m3u FILE3.m3u ...
Produces output like:
m3u-manage 0.2.2 TV/cars.m3u 9 TV/trucks.m3u 27 TV/planes.m3u 31 wrote OUTPUT.m3u
Curate
Curate playlists based on the inclusion and exclusion criteria in the provided .json file.
m3um curate --config example.json
Produces output like:
m3u-manage 0.2.2 write TV/cars.m3u write TV/trucks.m3u write TV/planes.m3u
example.json
When using the curate command, a series of expressions is provided in a .json file to indicate which playlists to generate.
The following example.json creates three .m3u files based on the videos present in the /TV directory. The cars and trucks playlists will contain any filename that matches the regular expressions.
The planes example specifies criteria for inclusion and exclusion, both as regular expressions. According to the exclusion criteria, all shuttles belong in the trucks playlist.
{
"path": ".",
"subdirs": ["TV"],
"patterns": {
"cars": "(car|auto|sedan)",
"trucks": "(truck|bus|shuttle)",
"planes": {
"include": "(jet|plane|rocket)",
"exclude": "shuttle"
}
}
}
Documentation
Release files for m3u-manage 0.5.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| m3u-manage-0.5.3.tar.gz | 15.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| m3u_manage-0.5.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 32.5 kB
Release files / m3u-manage-0.5.3.tar.gz
| Download URL | m3u-manage-0.5.3.tar.gz |
|---|---|
| Size | 15.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ae72ca2baf1b0dc76a6b6d4ac7df3f7e01224ae50d245ac94391a790550f2d8d
|
|
BLAKE2b-256 checksum How to use checksums |
9f1e74bc0f4819b931c3992a1716f1f51ded230120c0e5401ab1f11bc4dcac15
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7
|
Release files / m3u_manage-0.5.3-py3-none-any.whl
| Download URL | m3u_manage-0.5.3-py3-none-any.whl |
|---|---|
| Size | 17.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bf3b0ea45574377ad39ea23c6a29d6042330be1ce6f7fefc681e6afce46d0c54
|
|
BLAKE2b-256 checksum How to use checksums |
8490e3ec9f6fe446eb67f0ed241ff2f86d779a2ad3febf15f30d3bb4f9ae3fe0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7
|