/kodi2m3u

Export m3u playlists from a Kodi music video database

Primary LanguageShellMIT LicenseMIT

Kodi to m3u

Suppose you're running Kodi and you've loaded a whole bunch of music videos into its library. Thanks to the magic of theaudiodb.com or similar scrapers, it's already organised your tracks into genres.

Now you want a playlist for each genre. This tool will export an m3u playlist for every genre Kodi has stored in its database.

Install

Usage

First, find your Kodi userdata folder. That's where the Kodi database sits, and also where you'll need to copy the generated playlist files.

The database file should be in the Database sub-folder. On my system it's called MyVideos107.db (the 107 represents the Kodi database version).

Now run the script:

kodi2m3u <path to your MyVideos107.db> <output folder>

Now copy the m3u files into your Kodi playlists folder. Restart Kodi.

Notes

This is my first try at Golang, be kind.