Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mpdscribble: Listenbrainz implementation actually not supported #254365

Closed
riotbib opened this issue Sep 10, 2023 · 2 comments
Closed

mpdscribble: Listenbrainz implementation actually not supported #254365

riotbib opened this issue Sep 10, 2023 · 2 comments

Comments

@riotbib
Copy link
Member

riotbib commented Sep 10, 2023

Describe the bug

According to nixos/modules/services/audio/mpdscribble.nix scrobbling to Listenbrainz should be supported. But according to mpdscribble's Issue Tracker this feature is not yet implemented. Even more, I could not get it to run (see log output beneath).

Steps To Reproduce

Steps to reproduce the behavior:

  1. Enable mpdscribble module with proposed Listenbrainz configuration
  2. Watch it fail

Expected behavior

mpdscribble scrobbles to Listenbrainz.

Additional context

NixOS configuration

{
  services.mpdscribble = {
    enable = true;
    endpoints = {
      "listenbrainz" = {
        passwordFile = "redacted";
        username = "redacted";
      };
    };
  };
}

Log output to systemd

mpdscribble[3648499]: 2023-09-02T13:13:10+0200 loaded 0 songs from /var/lib/mpdscribble/listenbrainz.journal
mpdscribble[3648499]: 2023-09-02T13:13:11+0200 [listenbrainz] waiting 60 seconds before trying again
mpdscribble[3648499]: 2023-09-02T13:14:11+0200 [listenbrainz] waiting 120 seconds before trying again
mpdscribble[3648499]: 2023-09-02T13:16:12+0200 [listenbrainz] waiting 240 seconds before trying again

Notify maintainers

@Sohalt

(Thanks a lot for packaging and providing the module!)

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[lennart:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.31, NixOS, 23.05 (Stoat), 23.05.553.e7603eba51f`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.13.3`
 - channels(root): `"nixos-23.05, nixos-unstable"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
@Sohalt
Copy link
Contributor

Sohalt commented Sep 10, 2023

Afaict listenbrainz should support scrobbling with your musicbrainz ID as the username and listenbrainz authorization token as password (inside the passwordFile). What's not supported according to the issue is scrobbling the musicbrainz ID.

@riotbib
Copy link
Member Author

riotbib commented Sep 10, 2023

Wow, thanks a lot for the fast help! This is very much appreciated.

mpdscribble[96369]: 2023-09-10T12:15:35+0200 [listenbrainz] OK

Using the User token from the profile page of listenbrainz solved it.

I'd open a PR improving documentation for Listenbrainz in the module soon.

@riotbib riotbib closed this as completed Sep 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants