FreeTubeApp / FreeTube

An Open Source YouTube app for privacy
https://freetubeapp.io/
GNU Affero General Public License v3.0
12.55k stars 774 forks source link

[Feature request] Ability to scrobble music to Last.fm #1880

Open r0bbie opened 2 years ago

r0bbie commented 2 years ago

Is your feature request related to a usage problem (not a bug)? Please describe. It would be great to have the ability to scrobble music listening to via FreeTube to Last.fm. There are browser plugins which can accomplish the same thing when listening to music on YouTube, so this theoretically should be possible.

Describe the solution you'd like to see implemented A setting to authorise FreeTube to scrobble music listened to to your Last.fm account. Could either attempt to automatically recognise when a song / music video is being played, or provide a button for the user to instantly toggle a scrobble on for a particular video. Not sure the best UX around that.

peepo5 commented 2 years ago

What does scrobble mean

r0bbie commented 2 years ago

Scrobbling is the term Last.fm (and some similar services) use for tracking the activity of an individual listen to a specific song, and notifying Last.fm of this so it can be logged and displayed on your profile. Your Last.fm profile then acts as a record of all of the songs you listened to, and when (and provides interesting stats like your top artists for the month / year, etc)

More info here with some of the example platforms which support scrobbling - https://www.last.fm/about/trackmymusic 
So for example, Spotify has a Last.fm integration where you can log into your account in Spotify settings, and all song plays are automatically scrobbled (log sent) to Last.fm (though there are far more apps and open source projects that support this than listed there, I have my Jellyfin instance linked to Last.fm to scrobble all music played, for example)

Scrobbling documentation for the Last.fm API - https://www.last.fm/api/scrobbling

1to commented 2 years ago

I'd like to add that not only Last.fm uses scrobbling, there are also other services, including FOSS services like Maloja and Libre.fm. It is possible to scrobble from the browser using this open-source web scrobbler, capable of scrobbling to Last.fm, Libre.fm, ListenBrainz and Maloja, but it would be great to have the same functionality built into FreeTube.

ChunkyProgrammer commented 1 year ago

This is what I think the requirements should be:

Things we don't need:

This is what I think needs to be done before implementing:

Raxen001 commented 7 months ago

I like to see this added too

efb4f5ff-1298-471a-8973-3d47447115dc commented 2 months ago

FYI Last.fm privacy policy directs to https://privacy.paramount.com/en/policy?r=www.last.fm which is a privacy nightmare so that wont be supported as it goes against our principles

Didnt look into the FOSS platforms yet.