Various artists is working

This commit is contained in:
thomas 2020-09-21 00:17:53 -04:00
parent 2ed5e236da
commit 6747af076f
3 changed files with 31 additions and 5 deletions

View file

@ -299,6 +299,13 @@ object MusicUtil : KoinComponent {
return tempName == "unknown" || tempName == "<unknown>"
}
fun isVariousArtists(artistName: String): Boolean {
if (artistName == Artist.VARIOUS_ARTISTS_DISPLAY_NAME) {
return true
}
return false
}
fun isFavorite(context: Context, song: Song): Boolean {
return PlaylistsUtil
.doPlaylistContains(context, getFavoritesPlaylist(context).id, song.id)