tag: MPV

Favorite playlists for MPV

4 Jul, 2026 - 2 minutes
I made my first Lua script for MPV which reacts to a keyboard shortcut and stores the currently playing file in the playlist favorites.m3u in the same folder where the currently played file is located. For now, it can only create the playlist and add new entries into it. The implementation is brute forced and crude, but it works (at the moment). I checked the internet for ready to use scripts for MPV but I could not find any which would do this simple thing, everything seemed to be aiming for a different purpose (e.g. bookmark timestamps in the video instead of the video itself, or things were too complicated) so I decided to play with MPV scripting and put together my own thing.