maxrave-dev / SimpMusic

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

Songs added to online playlists are not downloaded. #493

Open Iliano101 opened 1 month ago

Iliano101 commented 1 month ago

Describe the bug

When a new song is added to an online playlist which is marked as downloaded, the new song is not downloaded and the download button cannot be pressed again.

To Reproduce

Steps to reproduce the behavior:

  1. Make sure to have at least 1 online playlist with at least 1 song on a linked Google account.
  2. Open the application.
  3. Go to the online playlist.
  4. Press the download button.
  5. Once all the songs are downloaded.
  6. Add a new song to the playlist using YouTube Music.
  7. Refresh the playlist by going to another screen and reopening the playlist.
  8. Notice that the new song was not downloaded and the download button cannot be pressed again.

Expected behavior

Two possible expected behaviors :

OR

Screenshots

Video showing the issue

Screenshot of the result : RESULT

Iliano101 commented 3 weeks ago

@maxrave-dev There seem to be some strange issues on the latest build. I was messing around in Android Studio and the download button for online playlist did not seem to work at all. I know it worked before so that is very strange.

Iliano101 commented 3 weeks ago

I think that both issues could be caused by line 329 to line 337 of the playlistViewModel. Capture d’écran 2024-08-18 225111