{"id":23628542,"url":"https://github.com/p-mng/goscrobble","last_synced_at":"2026-04-21T03:31:06.846Z","repository":{"id":269105870,"uuid":"906447743","full_name":"p-mng/goscrobble","owner":"p-mng","description":"A simple, cross-platform music scrobbler daemon.","archived":false,"fork":false,"pushed_at":"2026-03-16T12:13:54.000Z","size":135,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-03-17T00:45:25.872Z","etag":null,"topics":["cli","commandline","daemon","darwin","go","golang","lastfm","linux","macos","mpris","mpris2","multimedia","music","scrobble","scrobbler"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/p-mng.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-12-20T23:53:38.000Z","updated_at":"2026-03-16T12:13:58.000Z","dependencies_parsed_at":"2025-03-11T16:20:11.449Z","dependency_job_id":"dbe79e4c-5ca6-4692-b91a-332ddace3097","html_url":"https://github.com/p-mng/goscrobble","commit_stats":null,"previous_names":["p-mng/goscrobble"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/p-mng/goscrobble","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p-mng%2Fgoscrobble","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p-mng%2Fgoscrobble/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p-mng%2Fgoscrobble/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p-mng%2Fgoscrobble/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/p-mng","download_url":"https://codeload.github.com/p-mng/goscrobble/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p-mng%2Fgoscrobble/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32075213,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T02:38:07.213Z","status":"ssl_error","status_checked_at":"2026-04-21T02:38:06.559Z","response_time":128,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","commandline","daemon","darwin","go","golang","lastfm","linux","macos","mpris","mpris2","multimedia","music","scrobble","scrobbler"],"created_at":"2024-12-28T00:46:17.467Z","updated_at":"2026-04-21T03:31:06.841Z","avatar_url":"https://github.com/p-mng.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# goscrobble 🎧💿\n\n![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/p-mng/goscrobble/go.yml) ![GitHub Tag](https://img.shields.io/github/v/tag/p-mng/goscrobble) ![AUR Version](https://img.shields.io/aur/version/goscrobble) [![Go Report Card](https://goreportcard.com/badge/github.com/p-mng/goscrobble)](https://goreportcard.com/report/github.com/p-mng/goscrobble)\n\n## Description\n\nA simple, cross-platform music scrobbler daemon. Inspired by audio software like PulseAudio and PipeWire, it can be configured to connect different _sources_ (e.g., media players) and _sinks_ (e.g., last.fm).\n\n\u003e [!WARNING]\n\u003e This project is still beta software. Features may break without warning, scrobbling may be unreliable, and the config file format is subject to change. Use at your own risk.\n\u003e\n\u003e **Note:** This README refers to the `main` branch. To view the README for a specific version, check out the corresponding tagged commit.\n\n## Installation\n\n### Install script\n\n```shell\ncurl https://raw.githubusercontent.com/p-mng/goscrobble/refs/heads/main/scripts/install.sh | bash\n```\n\nThis will install the latest tagged version. Set `GOSCROBBLE_VERSION` to a branch or tag name to install a specific version (e.g., `export GOSCROBBLE_VERSION=main`).\n\nOn macOS, [media-control](https://github.com/ungive/media-control) and [terminal-notifier](https://github.com/julienXX/terminal-notifier) are required:\n\n```shell\nbrew install media-control terminal-notifier\n```\n\n### Arch Linux\n\n[goscrobble](https://aur.archlinux.org/packages/goscrobble) is available on the Arch User Repository. The package also provides a systemd user service that can be enabled with `systemctl --user enable goscrobble.service`.\n\n## Configuration\n\nA configuration file is created automatically in your config directory (usually `$HOME/.config/goscrobble/config.toml`). See \u003chttps://toml.io/en/\u003e for TOML syntax.\n\n\u003cdetails\u003e\n\n\u003csummary\u003eExample configuration file\u003c/summary\u003e\n\n```toml\n# track position update frequency in seconds\npoll_rate = 2\n# minimum playback duration in seconds\nmin_playback_duration = 240\n# minimum playback percentage\nmin_playback_percent = 50\n# send a desktop notification when a scrobble is saved\nnotify_on_scrobble = false\n# send a desktop notification when a scrobble cannot be saved\nnotify_on_error = true\n# player blacklist\nblacklist = [\"chromium\", \"firefox\"]\n\n# regex match/replace\n[[regexes]]\nmatch = \" - [0-9]+ Remaster(ed)?\"\nreplace = \"\"\nartist = false\ntrack = true\nalbum = true\n\n[[regexes]]\nmatch = \" - Radio Edit\"\nreplace = \" (Radio Edit)\"\ntrack = true\n\n# MPRIS2 dbus interface\n# https://specifications.freedesktop.org/mpris/latest/\n[sources.dbus]\n# dbus address: if empty, connect to the session bus\naddress = \"\"\n\n# ungive/media-control\n# https://github.com/ungive/media-control\n[sources.media-control]\n# path to the \"media-control\" binary\ncommand = \"media-control\"\n# media-control arguments, if empty use the following default value\narguments = [\"get\", \"--now\"]\n\n[sinks.lastfm.default]\n# replace this for sites that support the Audioscrobbler v2.0 API\n# if empty, use last.fm API\nbase_url = \"https://ws.audioscrobbler.com/2.0/\"\n# last.fm API key\nkey = \"replace with last.fm API key\"\n# last.fm API shared secret\nsecret = \"replace with last.fm API secret\"\n# last.fm session key, automatically set by \"goscrobble lastfm-auth\"\nsession_key = \"\"\n# last.fm username, automatically set by \"goscrobble lastfm-auth\"\nusername = \"\"\n\n[sinks.csv.default]\n# filename to write scrobbles to, defaults to $HOME/scrobbles.csv\nfilename = \"/home/username/scrobbles.csv\"\n\n[sinks.csv.network]\n# you can define sinks multiple times using different keys\n# this example defines two CSV sinks: \"default\" and \"network\"\nfilename = \"/network/data/scrobbles.csv\"\n```\n\n\u003c/details\u003e\n\nYou can blacklist players using [Go regular expressions](https://gobyexample.com/regular-expressions). Players are identified by their D-Bus service name on Linux or the bundle identifier on macOS.\n\nThe example above will block `org.mpris.MediaPlayer2.chromium.instance10670` and `org.mpris.MediaPlayer2.firefox.instance_1_84` on Linux and `org.mozilla.firefox` on macOS.\n\n## Connect last.fm account\n\n1. [Create an API account](https://www.last.fm/api/account/create). Description, callback URL, and application homepage are not required.\n2. Open the config file and insert the [newly generated API key and shared secret](https://www.last.fm/api/accounts).\n3. Run `goscrobble lastfm-auth`, and authenticate the application in your browser.\n4. Return to your terminal and confirm the prompt. The session key and last.fm username will be automatically written to your config file.\n\n## Known issues\n\n### Double scrobbles when using tidal-hifi\n\n[tidal-hifi](https://github.com/Mastermindzh/tidal-hifi) exposes two MPRIS media players (`tidal-hifi` and `chromium`). You should add either `tidal-hifi` or `chromium` to your blacklist to prevent double scrobbling.\n\n## Similar projects\n\n- [FoxxMD/multi-scrobbler](https://github.com/FoxxMD/multi-scrobbler): scrobbler for multiple sources and clients (written in TypeScript)\n- [mariusor/mpris-scrobbler](https://github.com/mariusor/mpris-scrobbler): MPRIS scrobbler (written in C)\n- [InputUsername/rescrobbled](https://github.com/InputUsername/rescrobbled): MPRIS scrobbler (written in Rust)\n- [hrfee/go-scrobble](https://github.com/hrfee/go-scrobble): \"ugly last.fm scrobbler\" (written in Go)\n- [web-scrobbler/web-scrobbler](https://github.com/web-scrobbler/web-scrobbler): scrobbling browser extension (written in TypeScript)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp-mng%2Fgoscrobble","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fp-mng%2Fgoscrobble","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp-mng%2Fgoscrobble/lists"}