Fix crash related to fetching subscriptions
This commit is contained in:
1 parent
771929d0d8
commit
777db66bda
4 files changed
+27
-9
No files matched your search
@@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
- A bug where casting from web included timestamp even if the "Start at" check box is unchecked
|
- A bug where casting from web included timestamp even if the "Start at" check box is unchecked
|
||||||
- A leak where channel screens would reload data even when closed
|
- A leak where channel screens would reload data even when closed
|
||||||
|
- A crash when fetching subscriptions
|
||||||
|
|
||||||
## [0.14.0] - 2023-10-25
|
## [0.14.0] - 2023-10-25
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
function ShowErrorDialog(message as object, bulletText as object, bottomMessage as object)
|
function ShowErrorDialog(message as object, bulletText as object, bottomMessage as object)
|
||||||
|
' TODO:P2 a null check on StandardMessageDialog, only available on 10.0 and later
|
||||||
dialog = CreateObject("roSGNode", "StandardMessageDialog")
|
dialog = CreateObject("roSGNode", "StandardMessageDialog")
|
||||||
dialog.message = message
|
dialog.message = message
|
||||||
dialog.bulletText = bulletText
|
dialog.bulletText = bulletText
|
||||||
@@ -19,5 +20,7 @@ function OnButtonSelected()
|
|||||||
end function
|
end function
|
||||||
|
|
||||||
function OnDialogClosed()
|
function OnDialogClosed()
|
||||||
|
' TODO:P1 throw an exception to cause a crash report to be generated
|
||||||
|
' Should include which playlet lib failed to load
|
||||||
m.top.getScene().exitChannel = true
|
m.top.getScene().exitChannel = true
|
||||||
end function
|
end function
|
||||||
@@ -5,6 +5,8 @@
|
|||||||
<!-- index in a feed -->
|
<!-- index in a feed -->
|
||||||
<field id="feedSourcesIndex" type="integer" value="-1" />
|
<field id="feedSourcesIndex" type="integer" value="-1" />
|
||||||
<!--
|
<!--
|
||||||
|
TODO:P0 see if the existance of the field "title" has anything to do with it
|
||||||
|
|
||||||
For some strange reason, the "author" field can only be set once.
|
For some strange reason, the "author" field can only be set once.
|
||||||
If you try to set it again, it will not be updated, with type mismatch warning:
|
If you try to set it again, it will not be updated, with type mismatch warning:
|
||||||
|
|
||||||
|
|||||||
@@ -372,16 +372,28 @@ namespace Invidious
|
|||||||
function AuthFeedHandler(m as object, feedSource as object, response as object) as object
|
function AuthFeedHandler(m as object, feedSource as object, response as object) as object
|
||||||
m.DeleteExpiredToken(response)
|
m.DeleteExpiredToken(response)
|
||||||
|
|
||||||
if response.StatusCode() = 200
|
if response.StatusCode() <> 200
|
||||||
json = response.Json()
|
return invalid
|
||||||
videos = []
|
|
||||||
videos.Append(json.notifications)
|
|
||||||
videos.Append(json.videos)
|
|
||||||
return {
|
|
||||||
items: videos
|
|
||||||
}
|
|
||||||
end if
|
end if
|
||||||
return invalid
|
|
||||||
|
json = response.Json()
|
||||||
|
if json = invalid
|
||||||
|
return invalid
|
||||||
|
end if
|
||||||
|
|
||||||
|
videos = []
|
||||||
|
|
||||||
|
if IsArray(json.notifications)
|
||||||
|
videos.Append(json.notifications)
|
||||||
|
end if
|
||||||
|
|
||||||
|
if IsArray(json.videos)
|
||||||
|
videos.Append(json.videos)
|
||||||
|
end if
|
||||||
|
|
||||||
|
return {
|
||||||
|
items: videos
|
||||||
|
}
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function DeleteExpiredToken(response as object)
|
function DeleteExpiredToken(response as object)
|
||||||
|
|||||||
Reference in new issue
Block a user