[Android] Fix remote access video group/folder thumbnails

Nicolas Pomepuy git at videolan.org
Thu Feb 22 13:29:25 UTC 2024


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Feb 13 08:41:26 2024 +0100| [8c8dc71142c438e26844435a4558eec086da65dd] | committer: Nicolas Pomepuy

Fix remote access video group/folder thumbnails

> https://code.videolan.org/videolan/vlc-android/commit/8c8dc71142c438e26844435a4558eec086da65dd
---

 .../src/main/java/org/videolan/vlc/webserver/RemoteAccessRouting.kt   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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 90ba2c6ddc..dbb2ac1697 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
@@ -896,7 +896,7 @@ fun Route.setupRouting(appContext: Context, scope: CoroutineScope) {
                     return at get
                 }
             }
-            if (call.request.queryParameters["type"] == "video-group") {
+            if (call.request.queryParameters["type"]?.startsWith("video-group") == true) {
                 call.request.queryParameters["id"]?.let { id ->
                     val group = appContext.getFromMl {
                         getVideoGroup(id.toLong())
@@ -914,7 +914,7 @@ fun Route.setupRouting(appContext: Context, scope: CoroutineScope) {
                     return at get
                 }
             }
-            if (type == "video-folder") {
+            if (type?.startsWith("video-folder") == true) {
                 call.request.queryParameters["id"]?.let { id ->
                     val folder = appContext.getFromMl {
                         getFolder(Folder.TYPE_FOLDER_VIDEO, id.toLong())



More information about the Android mailing list