- Notifications
You must be signed in to change notification settings - Fork4
mpv script to scrobble songs played through iina to last.fm
License
ethanndickson/iina-lastfm
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
mpv script to scrobble songs played throughiina to last.fm, since nobody else has made one.
No dependencies! Runs on macOS Big Sur(+) with just iina installed.
Last tested on iina 1.3.5 & macOS Ventura 13.5.
You could probably get this working for mpv on other operating systems.
In iina advanced preferences, enable advanced mode, and set the config directory to
~/.config/mpv/
In iina advanced preferences, enable:
Name Value load-scripts yes input-ipc-server /tmp/mpv-socket Copy the
lastfmscrobbler
folder and thescripts
folder into~/.config/mpv/
Open
lastfmscrobbler/scrobble.sh
and modify theUSERNAME
variable:
USERNAME='lastfmUsername'
- In a terminal, write your last.fm password to the
login
keychain, under thecom.iina.lastfm
service:
security add-generic-password -a "lastfmUsername" -s "com.iina.lastfm" -w "mypassword"
With iina open and playing a track, runscrobble.sh
directly and check the error.
/usr/bin/env bash ~/.config/mpv/lastfmscrobbler/scrobble.sh
The script won't work unless the track you're playing has both of these metadata tags.
'TITLE'|'Title'|'title'
'ARTIST'|'Artist'|'artist'
You can see the raw metadata of the track when iina is running with
echo '{ "command": ["get_property", "metadata"] }' | nc -U /tmp/mpv-socket
If the program is scrobbling when you runscrobble.sh
manually but not automatically, check iina.log for lua errors.
About
mpv script to scrobble songs played through iina to last.fm
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Contributors2
Uh oh!
There was an error while loading.Please reload this page.