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 folder. On my system it was called MyVideos107.db.
Now run the script:
kodi2m3u <path to your MyVideos.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.