fix: instant mix random songs (#354)

* wip: updated instant mix request size

* Address broken continuous play 

* wip: filling queue, getting dupes

* fix: deduped the song track list
This commit is contained in:
eddyizm 2026-01-13 20:00:46 -08:00 committed by GitHub
parent 55265615e6
commit e77f3bf9b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 55 additions and 58 deletions

View file

@ -138,7 +138,7 @@ public class AlbumBottomSheetViewModel extends AndroidViewModel {
public LiveData<List<Child>> getAlbumInstantMix(LifecycleOwner owner, AlbumID3 album) {
instantMix.setValue(Collections.emptyList());
albumRepository.getInstantMix(album, 20).observe(owner, instantMix::postValue);
albumRepository.getInstantMix(album, 30).observe(owner, instantMix::postValue);
return instantMix;
}

View file

@ -126,7 +126,7 @@ public class ArtistBottomSheetViewModel extends AndroidViewModel {
public LiveData<List<Child>> getArtistInstantMix(LifecycleOwner owner, ArtistID3 artist) {
instantMix.setValue(Collections.emptyList());
artistRepository.getInstantMix(artist, 20).observe(owner, instantMix::postValue);
artistRepository.getInstantMix(artist, 30).observe(owner, instantMix::postValue);
return instantMix;
}

View file

@ -60,7 +60,7 @@ public class ArtistPageViewModel extends AndroidViewModel {
}
public LiveData<List<Child>> getArtistInstantMix() {
return artistRepository.getInstantMix(artist, 20);
return artistRepository.getInstantMix(artist, 30);
}
public ArtistID3 getArtist() {

View file

@ -130,7 +130,7 @@ public class SongBottomSheetViewModel extends AndroidViewModel {
public LiveData<List<Child>> getInstantMix(LifecycleOwner owner, Child media) {
instantMix.setValue(Collections.emptyList());
songRepository.getInstantMix(media.getId(), SeedType.TRACK, 20).observe(owner, instantMix::postValue);
songRepository.getInstantMix(media.getId(), SeedType.TRACK, 30).observe(owner, instantMix::postValue);
return instantMix;
}