elamperti / OpenWebScrobbler

🎧 An open source web scrobbler for Last.fm
https://openscrobbler.com/
GNU General Public License v2.0
319 stars 38 forks source link

Correct the Denatured scrobbles on my Lastfm profile #243

Open silversonicaxel opened 2 months ago

silversonicaxel commented 2 months ago

Is your feature request related to a problem? Please describe I would like to solve denatured scrobbling via platforms as Spotify, already scrobbled on Last.fm and present on your profile. The goal is, I listen to and scrobble an album from any platform, with songs title written with denatured tags, as:

Once I'm done listening, I go to OpenWebScrobble, a new top section, I can have a list of my last, I don't know, 100 songs, and I've the chance to fix the scrobbles removing this text, pattern as live, remastered...

Describe the solution you'd like As mentioned, new section, list of last 100 songs, checkbox, and an extra input field to highlight the pattern to remove. Once submitted, selected songs are deleted and properly resubmitted (if within the last 14 days, obviosuly)

Describe alternatives you've considered /

Additional context /

silversonicaxel commented 2 months ago

@elamperti feel free to ping me for a talk, if you like the idea

elamperti commented 2 months ago

I'd love to do this, but the biggest problem with this is that there's no endpoint to delete scrobbles. How would you go around that?

silversonicaxel commented 2 months ago

Ah, indeed it is missing in the official lastfm api documentation. I saw from network tab that

https://www.last.fm/user/[user]/library/delete is called, with a token and some data as

csrfmiddlewaretoken: ...
artist_name: Fuck Buttons
track_name: Rough Steez
timestamp: 1720954389
ajax: 1

I don't know if somehow in a hacky way it can be implemented (if you agree). Maybe we can have a check.

elamperti commented 2 months ago

That's an internal call and the CSRF checks will surely impede you from doing this from other site. The only way we could use this is by getting the users' credentials (we only have an API token) and emulating navigation to get the csrfmiddlewaretoken, which is quite dirty and something I wouldn't be comfortable doing with Open Scrobbler.

silversonicaxel commented 2 months ago

I understand, no hacky and uncomfortable approaches. If there is really no way, I would say, no feature, unless something comes out of the mind.