diff --git a/playlet-lib/src/components/ChannelView/ChannelView.bs b/playlet-lib/src/components/ChannelView/ChannelView.bs index 5583bc34..d833fdd8 100644 --- a/playlet-lib/src/components/ChannelView/ChannelView.bs +++ b/playlet-lib/src/components/ChannelView/ChannelView.bs @@ -404,7 +404,7 @@ function FetchSubscriptionStatus() as void }) end function -function OnFetchSubscriptionStatusResult(result as object) as void +function OnFetchSubscriptionStatusResult(_output as object) as void m.fetchSubscriptionStatusTask = invalid end function diff --git a/playlet-lib/src/components/ContentNode/ProfileContentNode.bs b/playlet-lib/src/components/ContentNode/ProfileContentNode.bs index 4ae24911..b1cdb5ed 100644 --- a/playlet-lib/src/components/ContentNode/ProfileContentNode.bs +++ b/playlet-lib/src/components/ContentNode/ProfileContentNode.bs @@ -51,6 +51,6 @@ function RefreshAccessToken() as void }, OnProfileRefreshTokenTaskResult) end function -function OnProfileRefreshTokenTaskResult(output as object) as void +function OnProfileRefreshTokenTaskResult(_output as object) as void m.refreshTokenTask = invalid end function diff --git a/playlet-lib/src/components/Screens/ProfileScreen/YouTubeAccountSelectionView/YouTubeAccountSelectionView.bs b/playlet-lib/src/components/Screens/ProfileScreen/YouTubeAccountSelectionView/YouTubeAccountSelectionView.bs index 5a0446d7..9db54503 100644 --- a/playlet-lib/src/components/Screens/ProfileScreen/YouTubeAccountSelectionView/YouTubeAccountSelectionView.bs +++ b/playlet-lib/src/components/Screens/ProfileScreen/YouTubeAccountSelectionView/YouTubeAccountSelectionView.bs @@ -70,7 +70,7 @@ function OnAccountsChanged() as void m.accountList.content = content end function -function OnAccountSelected(event as object) as void +function OnAccountSelected() as void itemSelected = m.accountList.itemSelected itemNode = m.accountList.content.GetChild(itemSelected) if itemNode = invalid diff --git a/playlet-lib/src/components/Services/Innertube/NodesParser.bs b/playlet-lib/src/components/Services/Innertube/NodesParser.bs index 1834fecf..78dd28e4 100644 --- a/playlet-lib/src/components/Services/Innertube/NodesParser.bs +++ b/playlet-lib/src/components/Services/Innertube/NodesParser.bs @@ -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"]) diff --git a/playlet-lib/src/components/Services/SponsorBlock/Notifications/SponsorBlockNotificationUtils.bs b/playlet-lib/src/components/Services/SponsorBlock/Notifications/SponsorBlockNotificationUtils.bs index 84d2ddb8..87f945a8 100644 --- a/playlet-lib/src/components/Services/SponsorBlock/Notifications/SponsorBlockNotificationUtils.bs +++ b/playlet-lib/src/components/Services/SponsorBlock/Notifications/SponsorBlockNotificationUtils.bs @@ -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) diff --git a/playlet-lib/src/components/VideoPlayer/SponsorBlock.bs b/playlet-lib/src/components/VideoPlayer/SponsorBlock.bs index c758f68a..ba1f7453 100644 --- a/playlet-lib/src/components/VideoPlayer/SponsorBlock.bs +++ b/playlet-lib/src/components/VideoPlayer/SponsorBlock.bs @@ -142,7 +142,7 @@ namespace SponsorBlock ' a notification, since it is possible this is where we skipped to. ' Seeking is not super accurate. if segment.showNotification and Abs(segment.end - position) >= 1 - SponsorBlock.ShowNotifcation(m.notifications, segment, action) + SponsorBlock.ShowNotifcation(m.notifications, segment) if action = SegmentAction.ManualSkip ' We'll save the segment here, and handle it in case the user