[Android] Remote access: fix the track's artist when it's unknown

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 08:38:17 2024 +0200| [5125b72ce30768b835151e4f67c679fed91bc347] | committer: Duncan McNamara

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

> https://code.videolan.org/videolan/vlc-android/commit/5125b72ce30768b835151e4f67c679fed91bc347
---

 .../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 179eed10dc..0b7ef52eba 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
@@ -481,7 +481,7 @@ fun Route.setupRouting(appContext: Context, scope: CoroutineScope) {
 
             val list = ArrayList<RemoteAccessServer.PlayQueueItem>()
             tracks.forEach { track ->
-                list.add(track.toPlayQueueItem())
+                list.add(track.toPlayQueueItem(defaultArtist = appContext.getString(R.string.unknown_artist)))
             }
             val gson = Gson()
             call.respondText(gson.toJson(list))



More information about the Android mailing list