From 1494d85dada93798f9f4bccf780870a56435649e Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Wed, 10 Jul 2024 17:11:01 -0400 Subject: [PATCH] Handle different disabled endpoints --- .../src/components/VideoFeed/VideoRowListRowContentTask.bs | 5 ++--- tools/bs-plugins/README.md | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/playlet-lib/src/components/VideoFeed/VideoRowListRowContentTask.bs b/playlet-lib/src/components/VideoFeed/VideoRowListRowContentTask.bs index 6873cf32..c3295fad 100644 --- a/playlet-lib/src/components/VideoFeed/VideoRowListRowContentTask.bs +++ b/playlet-lib/src/components/VideoFeed/VideoRowListRowContentTask.bs @@ -71,9 +71,8 @@ function VideoRowListRowContentTask(input as object) as object continue while end if - ' Invidious returns 400 and "{"error":"Administrator has disabled this endpoint."}" when the Popular feed is disabled - if feedSource.endpoint = "popular" and response.error.instr("Administrator has disabled this endpoint.") > -1 - LogWarn("Popular feedSource not available:", response.error) + if response.error.instr("Administrator has disabled this endpoint.") > -1 + LogWarn(feedSource.endpoint, "feedSource not available:", response.error) if feedSources.Count() = 1 parent = feedContentNode.getParent() parent.removeChild(feedContentNode) diff --git a/tools/bs-plugins/README.md b/tools/bs-plugins/README.md index 01dae250..f5350c09 100644 --- a/tools/bs-plugins/README.md +++ b/tools/bs-plugins/README.md @@ -1,2 +1,3 @@ # Playlet Brighterscript Plugins + This is the folder containing different [Brighterscript Plugins](https://github.com/rokucommunity/brighterscript/blob/master/docs/plugins.md) used by Playlet. Find their documentation [here](/docs/plugins.md)