Small bug fix

This commit is contained in:
Brahim Hadriche committed 2023-12-20 16:42:45 -05:00
1 parent a1aed7d253
commit 64f5985aae
3 files changed
+8 -1

No files matched your search

+1
View File
@@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- (Regression) Issue where auto-play keeps playing the same videos in a loop
- Small search box styling bug for Safari
- A bug where the skipping of a sponsored section at the end of a video leads to an infinite loop
- Small bug when listing Invidious public instances
### Removed
@@ -12,7 +12,7 @@
translation="[190,60]" />
<Button
id="refreshButton"
minWidth="0"
minWidth="180"
text="Refresh"
translation="[340,130]" />
@@ -1,5 +1,6 @@
import "pkg:/components/Services/Invidious/InvidiousService.bs"
import "pkg:/source/services/HttpClient.bs"
import "pkg:/source/utils/Logging.bs"
@asynctask
function InvidiousPublicInstancesTask(input as object) as object
@@ -54,6 +55,11 @@ function FilterInstances(instances as object) as object
filtered = []
for each instance in instances
if not IsArray(instance) or instance.Count() < 2
LogWarn("Invalid instance:", instance)
continue for
end if
flags = instance[1]
if flags.type = "https" and flags.api = true and flags.cors = true
filtered.Push(instance)