Add mix error dialog
This commit is contained in:
1 parent
93d660e978
commit
e864a6d351
1 file changed
+8
@@ -35,6 +35,14 @@ function PlaylistContentTask(input as object) as object
|
|||||||
}
|
}
|
||||||
end if
|
end if
|
||||||
|
|
||||||
|
if metadata.DoesExist("error")
|
||||||
|
contentNode.loadState = FeedLoadState.Error
|
||||||
|
return {
|
||||||
|
success: false
|
||||||
|
error: metadata.error
|
||||||
|
}
|
||||||
|
end if
|
||||||
|
|
||||||
' TODO:P2 To remove after https://github.com/iv-org/invidious/pull/5116
|
' TODO:P2 To remove after https://github.com/iv-org/invidious/pull/5116
|
||||||
if IsString(metadata["mixId"]) and IsArray(metadata["videos"])
|
if IsString(metadata["mixId"]) and IsArray(metadata["videos"])
|
||||||
videos = metadata["videos"]
|
videos = metadata["videos"]
|
||||||
|
|||||||
Reference in new issue
Block a user