aome510 / spotify-player

A Spotify player in the terminal with full feature parity
MIT License
2.95k stars 132 forks source link

Incorrect like status in ShowActions #479

Closed 71zenith closed 1 week ago

71zenith commented 1 week ago

Describe the bug A clear and concise description of what the bug is. If i open a ShowActionOnSelectedItem, it will show "AddLiked" when its already liked and "DeleteFromLiked" when its not liked. Clicking on them will not do anything, at least not that i can detect.

To Reproduce Open Spotify-player. use Showactionsonselecteditem or ShowActionsOnCurrentTrack

Expected behaviour It should show vice versa and actually like/dislike the selected item

Screenshots image

aome510 commented 1 week ago

Right, it's a bug introduced in https://github.com/aome510/spotify-player/commit/bcba2e6cfa4ac989e003345b40c5809498805837#diff-aaa651a1b85c3377b86aecc56c92a0ceed8bc99d8c65025356684c2eea3b55edL137-L141.

Thanks for reporting.

deauthe commented 1 week ago

created a PR for this issue