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

feat: Scrobbling from phone (Android) to multi-scrobbler ? (not a bug) #204

Closed
iluvatyr opened this issue Oct 10, 2024 · 8 comments
Closed
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@iluvatyr
Copy link

iluvatyr commented Oct 10, 2024

Hello,

it is not really a bug, but I am a bit confused since I cannot find any option on how to scrobble from my (android)- phone to multi-scrobbler.

Does multi-scrobbler offer some endpoints that are commonly used so that it is possible to scrobble to multi-scrobbler via them (like maloja does) ? I want to use multiscrobbler as the "central station" for all my scrobbles and without this option, I can't do that.

I am using pano-scrobbler-android-app to scrobble some from some apps on my android phone and I'm not sure how I would scrobble to multi-scrobbler. It only offers a custom listenbrainz URL. Or are there other apps that can scrobble to multi-scrobbler?

Thanks for any help

@FoxxMD
Copy link
Owner

FoxxMD commented Oct 10, 2024

MS does not currently have endpoints for general scrobbling. It's something I've played with in the past and there's even an old branch that implements a Listenbrainz endpoint but I haven't fully implemented this kind of feature yet. There's more designing that's required before the LZ branch is merged and it hasn't been a priority. I'll think about how best to approach this.

In the meantime there is a direct scrobble integration for Webscrobbler or you could use last.fm/LZ as a source to relay scrobbles to another scrobbler.

@FoxxMD FoxxMD added enhancement New feature or request help wanted Extra attention is needed labels Oct 11, 2024
@iluvatyr iluvatyr changed the title Scrobbling from phone (Android) to multi-scrobbler ? (not a bug) feat: Scrobbling from phone (Android) to multi-scrobbler ? (not a bug) Oct 15, 2024
@FoxxMD
Copy link
Owner

FoxxMD commented Mar 13, 2025

@iluvatyr please try out docker image foxxmd/multi-scrobbler:pr-281 to use multi-scrobbler with a custom listenbrainz URL.

To configure it use either ENV like

LZENDPOINT_ENABLE=true

or as a file config with endpointlz.json

[
  {
    "name": "MyLZ",
    "enable": true,
    "data": {
    }
  }
]

Then, in your android app use one of these for your custom listenbrainz URL:

MSDashboardHost/api/listenbrainz
MSDashboardHost/1/submit-listens

MSDashboardHost is whatever you'd normally use to access MS web ui (localhost:9078 or w/e domain)

If the app does not allow specifying the full URL then it's probably appending /1/submit-listens itself so just use your dashboard URL.

Please keep in mind that for scrobbling to work your phone must be able to reach the MS dashboard.

@iluvatyr
Copy link
Author

@FoxxMD

I downloaded the specified docker image and added the listenbrainz endpoint. In my android app (pano scrobbler) I need to add an authentication token too though. What would that be?

@FoxxMD
Copy link
Owner

FoxxMD commented Mar 13, 2025

If a token is required then use any value you want and add this to config:

As ENV

LZE_TOKEN=anything

or config

[
  {
    "name": "MyLZ",
    "enable": true,
    "data": {
       "token": "anything"
    }
  }
]

@iluvatyr
Copy link
Author

Thank you!
I added the token to the config as stated.

I'm not sure what I'm doing wrong now though.
On my Android phone I added my MSDashboardHost (Which is the dashboard URL I'm using with a FQDN, e.g. https://mscrob.mydomain.com

I also added the token I specified.
When I do that in Pano scrobbler it says an error message when trying to set up the custom listenbrainz as follows:

Expected response body of the type "class YH.oc (Kotlin reflection is not available)

My reverse proxy tracks following url when I hit this:
IP - - [14/Mar/2025:16:26:15 +0100]"GET /1/validate-token HTTP/1.1" 200 894"-" MSDashboardHost "Pano Scrobbler

Using https://mscrob.mydomain.com/api/listenbrainz gives a 405 error.
Using https://mscrob.mydomain.com/1/submit-listen is the same as described without the /1/submit-listen added.

@FoxxMD
Copy link
Owner

FoxxMD commented Mar 14, 2025

Interesting...looks like I may have missed some part of the listenbrainz api, based on that url.

@FoxxMD
Copy link
Owner

FoxxMD commented Mar 14, 2025

@iluvatyr Please upda te to the newest foxxmd/multi-scrobbler:pr-281 image and let me know if that fixes things.

@iluvatyr
Copy link
Author

@iluvatyr Please upda te to the newest foxxmd/multi-scrobbler:pr-281 image and let me know if that fixes things.

@FoxxMD it is fixed. It discovered the track correctly. Amazing! Thank you for all these additions and the responsiveness that is the best I have ever seen!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants