maxrave-dev / SimpMusic

A simple music app using YouTube Music for backend
https://simpmusic.tech/
GNU General Public License v3.0
1.38k stars 95 forks source link

Wrong songs order in local playlist and wrong song getting deleted #346

Open aneesh1122 opened 4 weeks ago

aneesh1122 commented 4 weeks ago

Describe the bug A clear and concise description of what the bug is.

Something wierd is happening with local playlists. My playlist has 349 songs and I can add it as a local playlist successfully. Now, when I add the 350th song, it should appear as the latest added song but it appears as the oldest added song in my local playlist. In my main playlist the latest added song is shown as latest added correctly.

The 2nd problem is when I delete this 350th song, which is the latest added song, this 350th song gets deleted in the local playlist BUT in the main playlist the 350th song is still there but the 1st song(the oldest added song in the original playlist) gets deleted.

To Reproduce Steps to reproduce the behavior:

  1. Go to any playlist

  2. Click on save to local playlist

  3. Add a song to that local playlist

  4. Latest added song appear as oldest song in the playlist.

  5. Go to any local playlist and delete a song

  6. The song gets deleted from the local playlist but some other song gets deleted from the main playlist

Expected behavior 1) The song should appear at the top.

2) the same song should be deleted in both the local playlist and main playlist

The first problem is only with the big playlists. In the small playlist I made to test(10 songs), the latest songs appear as latest in both the local playlist and main playlist

Screenshots If applicable, add screenshots to help explain your problem.

Log (Error Details) Paste the log from the crashing screen, if it is not a crash bug, skip it.

maxrave-dev commented 3 weeks ago

Capture a screen recording for me please

aneesh1122 commented 3 weeks ago

Capture a screen recording for me please

Problem 1

https://github.com/maxrave-dev/SimpMusic/assets/45353488/061d2daa-03dd-4b50-a66c-4a712bd86b9c

The latest song is 'Espresso' and the oldest song is 'love me again'

When I added 'New rules' It should have been above 'Espresso' as the new latest song but It was added as the oldest song

Expected behaviour : 'New rules' as the latest song and 'love me again' as the oldest song

Actual behaviour : 'Espresso' is the last song and 'New rules' is the oldest song.

aneesh1122 commented 3 weeks ago

Capture a screen recording for me please

Problem 2

https://github.com/maxrave-dev/SimpMusic/assets/45353488/14e67f2c-04eb-4abf-bff3-6cae63226f4f

I first added 'I LUV IT' to the local playlist and later deleted that song from there.

The song got deleted from the local playlist as expected but in the main playlist instead of 'I LUV IT' 'Shape of You' got deleted.

So the wrong song is getting deleted in the main playlist but the right song is getting deleted in the local playlist.

Local playlist = 'I LUV IT' got deleted Main playlist = 'Shape of You' got deleted

maxrave-dev commented 3 weeks ago

Capture a screen recording for me please

Problem 1

VID_20240420_185449.mp4 The latest song is 'Espresso' and the oldest song is 'love me again'

When I added 'New rules' It should have been above 'Espresso' as the new latest song but It was added as the oldest song

Expected behaviour : 'New rules' as the latest song and 'love me again' as the oldest song

Actual behaviour : 'Espresso' is the last song and 'New rules' is the oldest song.

Hey, I don't have this bug, did you download a latest version from Github?

aneesh1122 commented 3 weeks ago

Capture a screen recording for me please

Problem 1

VID_20240420_185449.mp4 The latest song is 'Espresso' and the oldest song is 'love me again'

When I added 'New rules' It should have been above 'Espresso' as the new latest song but It was added as the oldest song

Expected behaviour : 'New rules' as the latest song and 'love me again' as the oldest song

Actual behaviour : 'Espresso' is the last song and 'New rules' is the oldest song.

Hey, I don't have this bug, did you download a latest version from Github?

Yeah I'm using the latest version. This problem is not there with small playlists.

This playlist has 350+ songs. Maybe this problem happens with big playlists. Try it yourself by any random big playlist