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

Scrobbling support #445

Closed
1 task done
isle9 opened this issue Mar 13, 2023 · 9 comments · Fixed by #761
Closed
1 task done

Scrobbling support #445

isle9 opened this issue Mar 13, 2023 · 9 comments · Fixed by #761
Labels
enhancement New feature or request
Milestone

Comments

@isle9
Copy link

isle9 commented Mar 13, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Pain

I would like to be able to send my scrobbles to last.fm and ideally listenbrainz too.

Suggested solution

Develop a stand alone scrobble integration.

Useful resources

No response

Additional information

The current workaround on mobile is to use an app, but it's a bit more difficult on desktop.

@isle9 isle9 added the enhancement New feature or request label Mar 13, 2023
@c3kes
Copy link

c3kes commented Mar 16, 2023

i support!

@KRTirtho
Copy link
Owner

KRTirtho commented Apr 8, 2023

This is similar to #466 as both will offer to create a personal musical profile
But both takes different approach. I bet having both as an option will be the best

@KRTirtho KRTirtho added this to the Version 3.0.0 milestone Apr 8, 2023
@KRTirtho
Copy link
Owner

KRTirtho commented Apr 8, 2023

But this will require extra logging into last.fm or listenbrainz
Docs: https://www.last.fm/api/scrobbling#now-playing-requests

@KRTirtho KRTirtho moved this to Backlog in Spotube Board Apr 8, 2023
@binaryben
Copy link

Please try to make it platform agnostic as much as possible. Also keen for support for Maloja

@RaylaLe100
Copy link

I'm really looking for the lastfm integration, it's the one thing that keeps me from using spotube on a wider scale.

@KRTirtho
Copy link
Owner

Unfortunately, I'm unable to make time in my tight schedule 😓 . I'd love if any kind person can pick this up & create a PR 😇

Resources

unfortunately, the scrobblenaut package is outdated but can be easily updated to support Dart 3
Btw this PR branch can be used Nebulino/Scrobblenaut#41 as it is null safe

lib/provider/proxy_playlist/proxy_playlist_provider.dart is the file where playback related stuffs are handled.
LastFM can be easily integrated here. And please follow the YouTube or Spotify client initialization (using riverpod Provider)

Also, an entry will be needed to be entered in accounts section of /settings page in the to allow the user to login with LastFM

To store the LastFM credentials the AuthenticationProvider can be utilized. Also, to let the user enter credentials we will need a new Login Page for LastFM. You can follow the components/desktop_login/login_form.dart for inspiration.

PS: Make sure to keep the new widgets as theme compatible as possible (3rd party widgets shouldn't be needed)
That means use the Theme.of(context).colorScheme for coherence.

@KRTirtho KRTirtho linked a pull request Sep 29, 2023 that will close this issue
@github-project-automation github-project-automation bot moved this from Backlog to Done in Spotube Board Sep 29, 2023
@KRTirtho KRTirtho moved this from Done to Deployed in Spotube Board Oct 18, 2023
@Robin-Sch
Copy link

Is there any plan for enabling listenbrainz scrobbling support? Or a self hosted version of maloja like mentioned before?

@KRTirtho
Copy link
Owner

KRTirtho commented Jan 8, 2024

I tried to create an API client for listenbrainz but their docs is so confusing I didn't even manage to get the base url for the API 😅

@Strubbl
Copy link

Strubbl commented Jan 22, 2024

The API Root URL is mentioned here: https://listenbrainz.readthedocs.io/en/latest/users/api/index.html. It's https://api.listenbrainz.org.

Then the user can create a token and save that in spotube, so that spotube can make the "Submitting Listens" requests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Deployed
Development

Successfully merging a pull request may close this issue.

7 participants