Tools to create amd manage an m3u playlist
Project description
https://m3u-manage.readthedocs.io
Tools to create amd manage an m3u playlist
Overview
Installation
Python pip
pip install m3u-manage
Usage
m3um analyze ./TV m3um generate --config ./example.json m3um mesh -o mesh.m3u TV/*.m3u
Analyze a playlist for the most common terms appearing in filenames.
m3um analyze DIRECTORY_NAME
Generate playlists based on the inclusion and exclusion criteria in the provided .json file.
m3um generate --config example.json
Create interleaved playlists by inserting from playlists with even spacing.
m3um mesh -o OUTPUT.m3u FILE1.m3u FILE2.m3u FILE3.m3u ...
example.json
When using the generate 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
Project details
Release history Release notifications | RSS feed
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
Hashes for m3u_manage-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 210b328d5aaf90d47a2d7d352d76d5d7b5ef0ee702686cf1f602a159defafd31 |
|
MD5 | 6f1e8a78e98bda9d653638342f17cab9 |
|
BLAKE2b-256 | 5a68792067e118ae87a0946610cc25010fa133607a886f2790bdb733b52855f8 |