Enables audio scrobbling to Last.FM as well as a metadata fetcher source.
This plug-in was migrated from the original Emby repository and has been adapted to function within the Jellyfin ecosystem. This plugin cannot be distributed with Jellyfin due to a missing compatible license. I will attempt to keep this repo up-to-date and in-sync as the Jellyfin project matures.
Install the plugin via the Jellyfin plugin repository (see: announcement). Navigate to plugins
section of the admin dashboard, add the following repository to follow stable builds for this plugin.
- Repo name: LastFM Stable
- Repo URL: https://jellyfin-repo.jesseward.com/manifest.json
When enabling the plugin, you receive Authentication Failed - You do not have permissions to access this service
when authenticating using your last.fm credentials.
This error is returned from the last.fm API. If you're certain you have correctly entered your username and password. Try resetting your last.fm username and password (change the password and change it back) via the last.fm site. This may be due to stale credentials cached on the last.fm infastructure. See jesseward#51 for context.
This appears to be due to the method in which these clients play media files. This plugin relies the invocation of the PlaybackStartEvent
and PlaybackStopEvent
events. Some details and references to upstream issues is located at jesseward#27 (comment)
Syncing of Loved tracks between LastFM and this plugin is subpar. This is due to the IsLike
method that is used to compare track metadata. See jesseward#24
GitHub Codespaces is the quickest solution to get started with development. Once your codespace is up and running, issue the following to build and start-up Jellyfin.
cd /workspaces/jellyfin-plugin-lastfm/.devcontainer && make
Port 8096
is exposed via the Codespace to allow a remote connection to your Jellyfin instance.
Install the .NET SDK on Linux or macOS, see the download page at https://dotnet.microsoft.com/download . Native package manager instructions can be found for Debian, RHEL, Ubuntu, Fedora, SLES, and CentOS.
Once the SDK is installed, run the following.
git clone https://github.com/jesseward/jellyfin-plugin-lastfm.git
cd jellyfin-plugin-lastfm
dotnet build
If the build is successful, the tool will report the path to your Plugin dll (Jellyfin.Plugin.Lastfm/bin/Debug/*/Jellyfin.Plugin.Lastfm.dll
)
The plugin should then be copied into your Jellyfin ${CONFIG_DIR}/plugins/LastFM
directory.
CACHE_DIR=/path/to/cache
MEDIA_DIR=/path/to/media
CONFIG_DIR=/path/to/config
docker run -d \
--name jelly \
--volume ${CONFIG_DIR}:/config \
--volume ${MEDIA_DIR}:/media \
--volume ${CACHE_DIR}:/cache \
--publish 8096:8096 \
--rm \
jellyfin/jellyfin