Skip to content
Snippets Groups Projects
Commit 22135a46 authored by Nicolas Pomepuy's avatar Nicolas Pomepuy Committed by Duncan McNamara
Browse files

Remote access: fix the track's artist when it's unknown in playlists

parent 5125b72c
No related branches found
No related tags found
1 merge request!1954Remote access: fix the track's artist when it's unknown
Pipeline #499417 passed with stage
in 7 minutes and 53 seconds
......@@ -553,7 +553,7 @@ fun Route.setupRouting(appContext: Context, scope: CoroutineScope) {
val list = ArrayList<RemoteAccessServer.PlayQueueItem>()
playlist.tracks.forEach { track ->
list.add(track.toPlayQueueItem().apply {
list.add(track.toPlayQueueItem(defaultArtist = if (track.type == MediaWrapper.TYPE_AUDIO) appContext.getString(R.string.unknown_artist) else "").apply {
if (track.type == MediaWrapper.TYPE_VIDEO) fileType = "video"
})
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment