A couple of fixes
This commit is contained in:
1 parent
fc7a029147
commit
30ea007502
3 files changed
+15
No files matched your search
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- A few issues related to Playlet backend feeds and caching
|
- A few issues related to Playlet backend feeds and caching
|
||||||
|
- An error when Invidious doesn't return valid video metadata
|
||||||
|
|
||||||
## [0.37.0] - 2025-05-16
|
## [0.37.0] - 2025-05-16
|
||||||
|
|
||||||
|
|||||||
@@ -929,6 +929,13 @@ namespace Innertube
|
|||||||
|
|
||||||
function ParseTileRenderer(nodeData as object, context as object) as object
|
function ParseTileRenderer(nodeData as object, context as object) as object
|
||||||
contentType = ValidString(nodeData["contentType"])
|
contentType = ValidString(nodeData["contentType"])
|
||||||
|
' A tileRenderer can be without a contentType, such as a
|
||||||
|
' button that says "Open YouTube Kids" or similar CTAs
|
||||||
|
if contentType = ""
|
||||||
|
LogWarn(`TileRenderer without contentType:\n`, nodeData)
|
||||||
|
return invalid
|
||||||
|
end if
|
||||||
|
|
||||||
if contentType = "TILE_CONTENT_TYPE_VIDEO"
|
if contentType = "TILE_CONTENT_TYPE_VIDEO"
|
||||||
return TileRendererTypeVideo(nodeData, context)
|
return TileRendererTypeVideo(nodeData, context)
|
||||||
else if contentType = "TILE_CONTENT_TYPE_PLAYLIST"
|
else if contentType = "TILE_CONTENT_TYPE_PLAYLIST"
|
||||||
|
|||||||
@@ -31,6 +31,13 @@ function VideoContentTask(input as object) as object
|
|||||||
metadata = service.GetVideoMetadata(contentNode.videoId, { cancellation: m.top.cancellation })
|
metadata = service.GetVideoMetadata(contentNode.videoId, { cancellation: m.top.cancellation })
|
||||||
end if
|
end if
|
||||||
|
|
||||||
|
if metadata = invalid
|
||||||
|
return {
|
||||||
|
success: false
|
||||||
|
error: "Failed to get video metadata"
|
||||||
|
}
|
||||||
|
end if
|
||||||
|
|
||||||
if m.top.cancel
|
if m.top.cancel
|
||||||
return invalid
|
return invalid
|
||||||
end if
|
end if
|
||||||
|
|||||||
Reference in new issue
Block a user