There is an ancient CLI script that just does this and it does it even better.
https://github.com/fluxid/mocp-scrobbler
Everything is in the readme, so I do not have to explain anything here. It just needs Python, sorry Pidsley. :)
Though you have to change one thing in the mocp-scrobbler.py file. Add python3 to the first line that says:
Code: Select all
#!/usr/bin/env
Code: Select all
#!/usr/bin/env python3
Code: Select all
~/Scripts/mocp-scrobbler.py