diff --git a/playlet-lib/src/components/Web/PlayletWebServer/Middleware/PlayletInvidiousBackendRouter.bs b/playlet-lib/src/components/Web/PlayletWebServer/Middleware/PlayletInvidiousBackendRouter.bs index f5f68095..76b041ad 100644 --- a/playlet-lib/src/components/Web/PlayletWebServer/Middleware/PlayletInvidiousBackendRouter.bs +++ b/playlet-lib/src/components/Web/PlayletWebServer/Middleware/PlayletInvidiousBackendRouter.bs @@ -80,6 +80,15 @@ namespace Http return true end if + if IsAssociativeArray(feeds) + if feeds.error <> invalid + response.Json(feeds) + response.http_code = 500 + return true + end if + return true + end if + result = { "videos": [] } @@ -144,6 +153,15 @@ namespace Http return true end if + if IsAssociativeArray(feeds) + if feeds.error <> invalid + response.Json(feeds) + response.http_code = 500 + return true + end if + return true + end if + if feeds.Count() > 0 response.Json(feeds[0]) return true @@ -186,6 +204,15 @@ namespace Http return true end if + if IsAssociativeArray(feeds) + if feeds.error <> invalid + response.Json(feeds) + response.http_code = 500 + return true + end if + return true + end if + if feeds.Count() > 0 response.Json(feeds[0]) return true