Refresh lint rules (#238)

* Lint

* Color rules

* Update sponsorblock config file

* Small tweak

* Color adjustments
This commit is contained in:
Brahim Hadriche authored and GitHub committed 2023-12-22 19:36:36 -05:00
1 parent cbda8dbf9b
commit e53ad785c6
89 files changed
+445 -468

No files matched your search

@@ -135,8 +135,8 @@ function OnSubscribeButtonSelected()
isSubbed = IsSubscribed()
m.subscribeTask = StartAsyncTask(SubscribeTask, {
invidious: m.invidious,
ucid: m.authorId,
invidious: m.invidious
ucid: m.authorId
subscribe: not isSubbed
})
end function
@@ -172,19 +172,19 @@ function InitializeTabs()
m.tabs = {
videos: function(authorId as string, author as string) as object
return CreateChannelFeed("Latest videos", "channel_videos", authorId, author)
end function,
end function
shorts: function(authorId as string, author as string) as object
return CreateChannelFeed("Shorts", "channel_shorts", authorId, author)
end function,
end function
streams: function(authorId as string, author as string) as object
return CreateChannelFeed("Live", "channel_streams", authorId, author)
end function,
end function
podcasts: function(authorId as string, author as string) as object
return CreateChannelFeed("Podcasts", "channel_podcasts", authorId, author)
end function,
end function
playlists: function(authorId as string, author as string) as object
return CreateChannelFeed("Playlists", "channel_playlists", authorId, author)
end function,
end function
channels: function(authorId as string, author as string) as object
return CreateChannelFeed("Channels", "channel_channels", authorId, author)
end function
@@ -193,12 +193,12 @@ end function
function CreateChannelFeed(title as string, endpoint as string, ucid as string, author as string) as object
return {
title: title,
title: title
feedSources: [{
"id": `inv_${endpoint}_${ucid}`,
"title": `${author} - ${title}`,
"apiType": "Invidious",
"endpoint": endpoint,
"id": `inv_${endpoint}_${ucid}`
"title": `${author} - ${title}`
"apiType": "Invidious"
"endpoint": endpoint
"pathParams": {
"ucid": ucid
}
@@ -22,7 +22,7 @@ function SubscribeTask(input as object) as object
error = response.ErrorMessage()
LogError("Failed to subscribe/unsubscribe to channel:", error)
return {
success: false,
success: false
error: error
}
end if