Removed featuring artists from the artist's name of downloaded item

This commit is contained in:
CappielloAntonio 2021-08-30 16:47:09 +02:00
parent ed4dc9fb63
commit 6e715d58a3
3 changed files with 25 additions and 5 deletions

View file

@ -6,6 +6,7 @@ import androidx.room.Entity;
import androidx.room.PrimaryKey;
import com.cappielloantonio.play.App;
import com.cappielloantonio.play.util.MusicUtil;
import com.cappielloantonio.play.util.PreferenceUtil;
@Entity(tableName = "download")
@ -57,7 +58,7 @@ public class Download {
this.albumId = song.getAlbumId();
this.albumName = song.getAlbumName();
this.artistId = song.getArtistId();
this.artistName = song.getArtistName();
this.artistName = MusicUtil.normalizedArtistName(song.getArtistName());
this.primary = song.getPrimary();
this.duration = song.getDuration();
this.server = PreferenceUtil.getInstance(App.getInstance()).getServerId();