Favorite playlists for MPV

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.

My little script can be found on my Gitea instance, but most probably only git clone will work as I was forced to enable the expensive Gitea option to limit cursed bots (there are better ways to do this, but all of them require more time, which I am not going to invest into it).

My usage after initially marking some files as favorite is to run them all as:

mpv $(find -name favorites.m3u)

This might be way too crude, but works for now. (potential issues with spaces and other stuff, but it works now.)

Conclusion

It is these little things which make my mood a bit better.

Articles from blogs I follow:

Stop telling people to sanitize user input

Whether you're dealing with a web application or some other application, all user input should always be considered "hostile" and "dangerous", but you should not just universally sanitize user input.

via Unix Digest - Articles March 7, 2026

GPG Update 2026

A recent toot of mine got the response “friends don’t let friends use GPG” which, I suppose, is true enough. It certainly isn’t the attestation-friendly thing to use, and the opsec failures that are so easy with GPG-encrypted mail make it a hazard there. …

via [bobulate] February 3, 2026

Steve Ballmer was an underrated CEO

There's a common narrative that Microsoft was moribund under Steve Ballmer and then later saved by the miraculous leadership of Satya Nadella. This is the dominant narrative in every online discussion about the topic I've seen and it's a commo…

via danluu.com October 28, 2024

Generated by openring