{"id":13822791,"url":"https://github.com/dmfutcher/spotify-connect-scrobbler","last_synced_at":"2026-01-05T16:16:53.914Z","repository":{"id":118804079,"uuid":"82830292","full_name":"dmfutcher/spotify-connect-scrobbler","owner":"dmfutcher","description":"Last.fm scrobbler for Spotify Connect","archived":false,"fork":false,"pushed_at":"2022-03-01T15:44:53.000Z","size":927,"stargazers_count":21,"open_issues_count":7,"forks_count":2,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-07-18T09:57:29.527Z","etag":null,"topics":["last-fm","lastfm","rust","rust-lang","scrobble","scrobbler","spotify","spotify-connect"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/dmfutcher.png","metadata":{"files":{"readme":"README.librespot.md","changelog":"CHANGELOG.md","contributing":null,"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}},"created_at":"2017-02-22T17:00:31.000Z","updated_at":"2023-10-17T16:15:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"1282def6-3d44-43be-b009-39ca5d61ef80","html_url":"https://github.com/dmfutcher/spotify-connect-scrobbler","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmfutcher%2Fspotify-connect-scrobbler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmfutcher%2Fspotify-connect-scrobbler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmfutcher%2Fspotify-connect-scrobbler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmfutcher%2Fspotify-connect-scrobbler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmfutcher","download_url":"https://codeload.github.com/dmfutcher/spotify-connect-scrobbler/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":213893314,"owners_count":15653524,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["last-fm","lastfm","rust","rust-lang","scrobble","scrobbler","spotify","spotify-connect"],"created_at":"2024-08-04T08:02:17.899Z","updated_at":"2026-01-05T16:16:53.879Z","avatar_url":"https://github.com/dmfutcher.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# librespot\n*librespot* is an open source client library for Spotify. It enables\napplications to use Spotify's service, without using the official but\nclosed-source libspotify. Additionally, it will provide extra features\nwhich are not available in the official library.\n\n## Building\nRust 1.15.0 or later is required to build librespot.\n\nIt also requires a C, with portaudio.\n\nOn debian / ubuntu, the following command will install these dependencies :\n```shell\nsudo apt-get install build-essential portaudio19-dev\n```\n\nOn Fedora systems, the following command will install these dependencies :\n```shell\nsudo dnf install portaudio-devel make gcc\n```\n\nOn OS X, using homebrew :\n```shell\nbrew install portaudio\n```\n\nOnce you've cloned this repository you can build *librespot* using `cargo`.\n```shell\ncargo build --release\n```\n\n## Usage\nA sample program implementing a headless Spotify Connect receiver is provided.\nOnce you've built *librespot*, run it using :\n```shell\ntarget/release/librespot --username USERNAME --cache CACHEDIR --name DEVICENAME\n```\n\n## Discovery mode\n*librespot* can be run in discovery mode, in which case no password is required at startup.\nFor that, simply omit the `--username` argument.\n\n## Audio Backends\n*librespot* supports various audio backends. Multiple backends can be enabled at compile time by enabling the\ncorresponding cargo feature. By default, only PortAudio is enabled.\n\nA specific backend can selected at runtime using the `--backend` switch.\n\n```shell\ncargo build --features portaudio-backend\ntarget/release/librespot [...] --backend portaudio\n```\n\nThe following backends are currently available :\n- ALSA\n- PortAudio \n- PulseAudio\n\n## Cross-compiling\nA cross compilation environment is provided as a docker image.\nBuild the image from the root of the project with the following command :\n\n```\n$ docker build -t librespot-cross -f contrib/Dockerfile .\n```\n\nThe resulting image can be used to build librespot for linux x86_64, armhf and armel.\nThe compiled binaries will be located in /tmp/librespot-build\n\n```\ndocker run -v /tmp/librespot-build:/build librespot-cross\n```\n\nIf only one architecture is desired, cargo can be invoked directly with the appropriate options :\n```shell\ndocker run -v /tmp/librespot-build:/build librespot-cross cargo build --release --no-default-features --features alsa-backend\ndocker run -v /tmp/librespot-build:/build librespot-cross cargo build --release --target arm-unknown-linux-gnueabihf --no-default-features --features alsa-backend\ndocker run -v /tmp/librespot-build:/build librespot-cross cargo build --release --target arm-unknown-linux-gnueabi --no-default-features --features alsa-backend\n```\n\n## Development\nWhen developing *librespot*, it is preferable to use Rust nightly, and build it using the following :\n```shell\ncargo build --no-default-features --features \"nightly portaudio-backend\"\n```\n\nThis produces better compilation error messages than with the default configuration.\n\n## Disclaimer\nUsing this code to connect to Spotify's API is probably forbidden by them.\nUse at your own risk.\n\n## Contact\nCome and hang out on gitter if you need help or want to offer some.\nhttps://gitter.im/sashahilton00/spotify-connect-resources\n\n## License\nEverything in this repository is licensed under the MIT license.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmfutcher%2Fspotify-connect-scrobbler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmfutcher%2Fspotify-connect-scrobbler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmfutcher%2Fspotify-connect-scrobbler/lists"}