hrkfdn / ncspot

Cross-platform ncurses Spotify client written in Rust, inspired by ncmpc and the likes.
BSD 2-Clause "Simplified" License
4.93k stars 205 forks source link

Track listening status #664

Open r4v3n6101 opened 2 years ago

r4v3n6101 commented 2 years ago

Is your feature request related to a problem? Please describe. Seems that Spotify 2021 Wrapped doesn't count tracks played in ncspot.

Describe the solution you'd like Make a new request to the server notifying user is listening something.

Describe alternatives you've considered TBH I don't know how SpotifyAPI works so I can't do any other assumptions. Here might be discussion to solve something unclear.

hrkfdn commented 2 years ago

Yea, it seems that some extra communication is needed within librespot to notify Spotify that tracks are played. That would have to be reverse engineered, as there is no Web API for this (I believe).

hrkfdn commented 2 years ago

This PR is related: https://github.com/librespot-org/librespot/pull/891

apprehensions commented 2 years ago

has this been implemented yet? the PR was merged and i can't seem to see if the listening broadcast is working.

r4v3n6101 commented 2 years ago

Hello, @wael444. No, seems it hasn't made any progress. Continuation of issue's here: https://github.com/librespot-org/librespot/discussions/917

apprehensions commented 2 years ago

wait, how come it works for spotifyd then?

r4v3n6101 commented 2 years ago

Haven't already watched spotifyd but my guess is using custom defined request for providing listening info.

hrkfdn commented 2 years ago

wait, how come it works for spotifyd then?

Not sure it does: https://github.com/Spotifyd/spotifyd/issues/1064

Skaytacium commented 2 years ago

I think it is possible to implement track listening status, but maybe not track logging. After cloning and looking around the codebase myself I think the way that it works is by playing it through a registered device. The spotify connect protocol probably handles the status display. This could be the reason that using spotify-tui and spotifyd makes the status visible, or using plain librespot and your phone also works. My source is my discord status (and some spotify API calls). This could all be completely wrong but this is what I can contribute.

Zac8668 commented 7 months ago

This still does not work right?