Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

mpv script to scrobble songs played through iina to last.fm

License

NotificationsYou must be signed in to change notification settings

ethanndickson/iina-lastfm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

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.

Installing

  1. In iina advanced preferences, enable advanced mode, and set the config directory to~/.config/mpv/

  2. In iina advanced preferences, enable:

    NameValue
    load-scriptsyes
    input-ipc-server/tmp/mpv-socket
  3. Copy thelastfmscrobbler folder and thescripts folder into~/.config/mpv/

  4. Openlastfmscrobbler/scrobble.sh and modify theUSERNAME variable:

USERNAME='lastfmUsername'
  1. In a terminal, write your last.fm password to thelogin keychain, under thecom.iina.lastfm service:
security add-generic-password -a "lastfmUsername" -s "com.iina.lastfm" -w "mypassword"

Debugging

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp