[skip ci] small cleanup

This commit is contained in:
Brahim Hadriche committed 2025-06-12 09:40:34 -04:00
1 parent 8e71ededd2
commit a244cdee05
6 files changed
+10 -10

No files matched your search

@@ -977,7 +977,7 @@ namespace Innertube
return nodeData["tabs"]
end function
function ParseTwoColumnRenderer(nodeData as object, context as object) as object
function ParseTwoColumnRenderer(nodeData as object, _context as object) as object
' twoColumnRenderer is used for Playlists on TV.
' The right column has the videos (and continuation)
' The left column has the playlist info (title, description, etc) which was already parsed
@@ -1085,7 +1085,7 @@ namespace Innertube
"percentDurationWatched": percentDurationWatched
}
authorId = ParseTileRendererAuthorId(nodeData, context)
authorId = ParseTileRendererAuthorId(nodeData)
if authorId <> invalid
video["authorId"] = authorId
end if
@@ -1133,7 +1133,7 @@ namespace Innertube
"videoThumbnails": videoThumbnails
}
authorId = ParseTileRendererAuthorId(nodeData, context)
authorId = ParseTileRendererAuthorId(nodeData)
if authorId <> invalid
video["authorId"] = authorId
end if
@@ -1180,7 +1180,7 @@ namespace Innertube
"lines": renderedLines
}
authorId = ParseTileRendererAuthorId(nodeData, context)
authorId = ParseTileRendererAuthorId(nodeData)
if authorId <> invalid
playlist["authorId"] = authorId
end if
@@ -1189,7 +1189,7 @@ namespace Innertube
return invalid
end function
function ParseTileRendererAuthorId(nodeData as object, context as object) as dynamic
function ParseTileRendererAuthorId(nodeData as object) as dynamic
' We're checking in the long press menu if there's a browseId that starts with "UC".
' This is usually the the id of the channel.
menuItems = ObjectUtils.Dig(nodeData, ["onLongPressCommand", "showMenuCommand", "menu", "menuRenderer", "items"])
@@ -14,7 +14,7 @@ namespace SponsorBlock
return invalid
end function
function ShowNotifcation(notifications as object, segment as object, action as dynamic) as void
function ShowNotifcation(notifications as object, segment as object) as void
' TODO:P2 avoid finding the node over and over
' The video player can probably own a single notification, and destroy it when the video is closed
notification = GetCurrentNotification(notifications)