[Android] Remote access: fix the track's artist when it's unknown in playlists
Nicolas Pomepuy
git at videolan.org
Mon Aug 5 09:48:48 UTC 2024
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Fri Aug 2 09:23:44 2024 +0200| [22135a46f67d1d2df1828d280261cf187daf8907] | committer: Duncan McNamara
Remote access: fix the track's artist when it's unknown in playlists
> https://code.videolan.org/videolan/vlc-android/commit/22135a46f67d1d2df1828d280261cf187daf8907
---
.../src/main/java/org/videolan/vlc/webserver/RemoteAccessRouting.kt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/application/webserver/src/main/java/org/videolan/vlc/webserver/RemoteAccessRouting.kt b/application/webserver/src/main/java/org/videolan/vlc/webserver/RemoteAccessRouting.kt
index 0b7ef52eba..5071a5682d 100644
--- a/application/webserver/src/main/java/org/videolan/vlc/webserver/RemoteAccessRouting.kt
+++ b/application/webserver/src/main/java/org/videolan/vlc/webserver/RemoteAccessRouting.kt
@@ -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"
})
}
More information about the Android
mailing list