Last.fm scrobbler script for MPV. It uses hauzer/scrobbler to communicate with last.fm.
Install and setup hauzer/scrobbler. Remember to place the executable in your path.
mv lastfm.lua ~/.mpv/scripts/
vim ~/.mpv/script-opts/lastfm.conf
Add username=<your username>
to the config file. The username is case-sensitive, so remember to wirte it correctly!