Small bug fix
This commit is contained in:
1 parent
a1aed7d253
commit
64f5985aae
3 files changed
+8
-1
No files matched your search
@@ -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
|
- (Regression) Issue where auto-play keeps playing the same videos in a loop
|
||||||
- Small search box styling bug for Safari
|
- 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
|
- 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
|
### Removed
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@
|
|||||||
translation="[190,60]" />
|
translation="[190,60]" />
|
||||||
<Button
|
<Button
|
||||||
id="refreshButton"
|
id="refreshButton"
|
||||||
minWidth="0"
|
minWidth="180"
|
||||||
text="Refresh"
|
text="Refresh"
|
||||||
translation="[340,130]" />
|
translation="[340,130]" />
|
||||||
|
|
||||||
|
|||||||
+6
@@ -1,5 +1,6 @@
|
|||||||
import "pkg:/components/Services/Invidious/InvidiousService.bs"
|
import "pkg:/components/Services/Invidious/InvidiousService.bs"
|
||||||
import "pkg:/source/services/HttpClient.bs"
|
import "pkg:/source/services/HttpClient.bs"
|
||||||
|
import "pkg:/source/utils/Logging.bs"
|
||||||
|
|
||||||
@asynctask
|
@asynctask
|
||||||
function InvidiousPublicInstancesTask(input as object) as object
|
function InvidiousPublicInstancesTask(input as object) as object
|
||||||
@@ -54,6 +55,11 @@ function FilterInstances(instances as object) as object
|
|||||||
filtered = []
|
filtered = []
|
||||||
|
|
||||||
for each instance in instances
|
for each instance in instances
|
||||||
|
if not IsArray(instance) or instance.Count() < 2
|
||||||
|
LogWarn("Invalid instance:", instance)
|
||||||
|
continue for
|
||||||
|
end if
|
||||||
|
|
||||||
flags = instance[1]
|
flags = instance[1]
|
||||||
if flags.type = "https" and flags.api = true and flags.cors = true
|
if flags.type = "https" and flags.api = true and flags.cors = true
|
||||||
filtered.Push(instance)
|
filtered.Push(instance)
|
||||||
|
|||||||
Reference in new issue
Block a user