Skip to content

Commit

Permalink
Parse author in videoRenderer
Browse files Browse the repository at this point in the history
  • Loading branch information
iBicha committed Dec 21, 2024
1 parent 9f3eee9 commit 9394f04
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions playlet-lib/src/components/Services/Innertube/NodesParser.bs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ namespace Innertube
return invalid
end if

longByLineText = nodeData["longBylineText"]
author = ParseText(longByLineText)
authorId = ObjectUtils.Dig(longByLineText, ["runs", 0, "navigationEndpoint", "browseEndpoint", "browseId"])

if context.generateVideoThumbnails = true
videoThumbnails = GenerateVideoThumbnails(videoId)
else
Expand All @@ -148,6 +152,8 @@ namespace Innertube
"type": "video"
"videoId": videoId
"title": ParseText(nodeData["title"])
"author": author
"authorId": authorId
"videoThumbnails": videoThumbnails
}

Expand Down

0 comments on commit 9394f04

Please sign in to comment.