Skip to main content

Tools to create amd manage an m3u playlist

Project description

Tools to create amd manage an m3u playlist Documentation Status



Python pip

pip install m3u-manage


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 ...


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"

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for m3u-manage, version 0.2.2
Filename, size File type Python version Upload date Hashes
Filename, size m3u_manage-0.2.2-py3-none-any.whl (5.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size m3u-manage-0.2.2.tar.gz (4.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page