mirror of
https://github.com/Rigellute/spotify-tui.git
synced 2026-04-26 08:05:57 +03:00
[GH-ISSUE #106] Wrong album is shown if an album in the Album library was viewed previously #63
Labels
No labels
bug
enhancement
good first issue
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-tui#63
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jfaltis on GitHub (Oct 24, 2019).
Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/106
Steps to reproduce
spotify-tui@sputnick1124 commented on GitHub (Nov 3, 2019):
It seems that when an album is selected from an artist, It's track list is overwritten immediately by the track listing of the most recently viewed album from the user's saved albums list.
github.com/Rigellute/spotify-tui@0379b46fab/src/handlers/artist_albums.rs (L29-L49)@Rigellute, is there a reason for this second block? Going through the commit history, it seems that the second block in that
artist_albumshandler was an earlier prototype which should perhaps have been removed in a later commit when the actual artist results were fleshed out?Early commit:
github.com/Rigellute/spotify-tui@e4f446535a (diff-f935c27bae)Later commit:
github.com/Rigellute/spotify-tui@28e9ee28fd (diff-f935c27bae)@sputnick1124 commented on GitHub (Nov 3, 2019):
I should mention that the lines causing the issue in the
artist_albumshandler are an exact copy of the lines performing the same function in thealbum_listhandler, which is what leads me to believe that perhaps this is leftover prototyping code.Problematic code:
github.com/Rigellute/spotify-tui@0379b46fab/src/handlers/artist_albums.rs (L40-L49)Copied code:
github.com/Rigellute/spotify-tui@0379b46fab/src/handlers/album_list.rs (L27-L36)@sputnick1124 commented on GitHub (Nov 3, 2019):
I've got a branch with the fix implemented. I can submit a PR unless I'm missing something.
@Rigellute commented on GitHub (Nov 3, 2019):
Great debugging @sputnick1124. You're right, this bug is a result of hacky prototyping. I really need to rethink and tidy things up.
I've gone through a few different approaches and it makes things confusing!
Please do PR your fix!
@sputnick1124 commented on GitHub (Nov 4, 2019):
No worries!
spotify-tuiis obviously filling a hole and generating interest, so you're on to something good here. Working out the bugs and iterating to a good ultimate design is just part of the process.https://github.com/Rigellute/spotify-tui/pull/130
@Rigellute commented on GitHub (Nov 4, 2019):
#130 closes this