Refresh lint rules (#238)
* Lint * Color rules * Update sponsorblock config file * Small tweak * Color adjustments
This commit is contained in:
1 parent
cbda8dbf9b
commit
e53ad785c6
89 files changed
+445
-468
No files matched your search
@@ -45,15 +45,15 @@ namespace Invidious
|
||||
m.endpoints = node.apiDefinitions
|
||||
|
||||
m.responseHanlders = {
|
||||
DefaultHandler: m.DefaultHandler,
|
||||
AuthFeedHandler: m.AuthFeedHandler,
|
||||
PlaylistHandler: m.PlaylistHandler,
|
||||
VideoInfoHandler: m.VideoInfoHandler,
|
||||
PlaylistInfoHandler: m.PlaylistInfoHandler,
|
||||
ChannelInfoHandler: m.ChannelInfoHandler,
|
||||
ChannelVideosHandler: m.ChannelVideosHandler,
|
||||
ChannelPlaylistsHandler: m.ChannelPlaylistsHandler,
|
||||
ChannelRelatedChannelsHandler: m.ChannelRelatedChannelsHandler,
|
||||
DefaultHandler: m.DefaultHandler
|
||||
AuthFeedHandler: m.AuthFeedHandler
|
||||
PlaylistHandler: m.PlaylistHandler
|
||||
VideoInfoHandler: m.VideoInfoHandler
|
||||
PlaylistInfoHandler: m.PlaylistInfoHandler
|
||||
ChannelInfoHandler: m.ChannelInfoHandler
|
||||
ChannelVideosHandler: m.ChannelVideosHandler
|
||||
ChannelPlaylistsHandler: m.ChannelPlaylistsHandler
|
||||
ChannelRelatedChannelsHandler: m.ChannelRelatedChannelsHandler
|
||||
WatchHistoryHandler: m.WatchHistoryHandler
|
||||
}
|
||||
end function
|
||||
@@ -209,7 +209,7 @@ namespace Invidious
|
||||
endpoint = m.endpoints[feedSource.endpoint]
|
||||
if endpoint = invalid
|
||||
return {
|
||||
success: false,
|
||||
success: false
|
||||
error: `Endpoint ${feedSource.endpoint} not found`
|
||||
}
|
||||
end if
|
||||
@@ -222,7 +222,7 @@ namespace Invidious
|
||||
authToken = m.node.authToken
|
||||
if authToken = invalid
|
||||
return {
|
||||
success: false,
|
||||
success: false
|
||||
error: ERROR_NOT_AUTHENTICATED
|
||||
}
|
||||
end if
|
||||
@@ -283,12 +283,12 @@ namespace Invidious
|
||||
|
||||
if response.IsSuccess() and result <> invalid
|
||||
return {
|
||||
success: true,
|
||||
success: true
|
||||
result: result
|
||||
}
|
||||
else
|
||||
return {
|
||||
success: false,
|
||||
success: false
|
||||
error: response.ErrorMessage()
|
||||
}
|
||||
end if
|
||||
@@ -318,7 +318,7 @@ namespace Invidious
|
||||
if response.StatusCode() = 200
|
||||
json = response.Json()
|
||||
return {
|
||||
items: json.videos,
|
||||
items: json.videos
|
||||
continuation: json.continuation
|
||||
}
|
||||
end if
|
||||
@@ -329,7 +329,7 @@ namespace Invidious
|
||||
if response.StatusCode() = 200
|
||||
json = response.Json()
|
||||
return {
|
||||
items: json.playlists,
|
||||
items: json.playlists
|
||||
continuation: json.continuation
|
||||
}
|
||||
end if
|
||||
@@ -340,7 +340,7 @@ namespace Invidious
|
||||
if response.StatusCode() = 200
|
||||
json = response.Json()
|
||||
return {
|
||||
items: json.relatedChannels,
|
||||
items: json.relatedChannels
|
||||
continuation: json.continuation
|
||||
}
|
||||
end if
|
||||
@@ -422,7 +422,7 @@ namespace Invidious
|
||||
videos = []
|
||||
for each item in json
|
||||
videos.push({
|
||||
"type": "video",
|
||||
"type": "video"
|
||||
"videoId": item
|
||||
})
|
||||
end for
|
||||
@@ -454,7 +454,7 @@ namespace Invidious
|
||||
' Right now we're probably in a UI thread, and we can't unregister the token
|
||||
' Without a Task
|
||||
StartAsyncTask(InvidiousUnregisterTokenTask, {
|
||||
invidious: m.node,
|
||||
invidious: m.node
|
||||
authToken: authToken
|
||||
})
|
||||
RegistryUtils.Delete(RegistryUtils.INVIDIOUS_TOKEN)
|
||||
@@ -470,8 +470,8 @@ We apologize for the inconvenience.`
|
||||
|
||||
function SetAuthToken(token as string, instance as string, username as dynamic)
|
||||
obj = {
|
||||
token: token,
|
||||
instance: instance,
|
||||
token: token
|
||||
instance: instance
|
||||
username: username
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ function InvidiousSubscriptionsTask(input as object) as object
|
||||
LogError("Error getting subscriptions:", error)
|
||||
|
||||
return {
|
||||
success: false,
|
||||
success: false
|
||||
error: response.ErrorMessage()
|
||||
}
|
||||
end if
|
||||
|
||||
Reference in new issue
Block a user