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

@@ -110,7 +110,7 @@ namespace SponsorBlock
barPath = output.result.barPath
if barPath <> invalid
m.top.trickPlayBar.trackImageUri = barPath
m.top.trickPlayBar.filledBarBlendColor = "0xFF000080"
m.top.trickPlayBar.filledBarBlendColor = "#FF000080"
end if
m.top.UnobserveFieldScoped("position")
@@ -27,7 +27,7 @@ function VideoContentTask(input as object) as object
if not response.IsSuccess() or metadata = invalid
return {
success: false,
success: false
error: response.ErrorMessage()
}
end if
@@ -41,9 +41,9 @@ function VideoContentTask(input as object) as object
SetCaptions(metadata, service, contentNode)
contentNode.addFields({
metadata: metadata,
metadata: metadata
' StreamUrls is taken
playletStreamUrls: streamUrls,
playletStreamUrls: streamUrls
playletStreamUrlIndex: 0
})
@@ -104,11 +104,11 @@ function AddStreamUrls(streamUrls as object, metadata as object, service as Invi
' These are roughly the itags for 360p and 480p
' Most videos will hit 18, which is 360p
mediumItags = {
"18": true,
"43": true,
"44": true,
"82": true,
"83": true,
"18": true
"43": true
"44": true
"82": true
"83": true
"101": true
}
for each formatStream in metadata.formatStreams
@@ -172,8 +172,8 @@ function SetCaptions(metadata as object, service as object, contentNode as objec
for each caption in metadata.captions
subtitleTracks.Push({
Description: caption.label,
Language: isoLanguageList[caption.language_code] ?? caption.language_code,
Description: caption.label
Language: isoLanguageList[caption.language_code] ?? caption.language_code
TrackName: instance + caption.url
})
end for
@@ -69,9 +69,9 @@ function StartVideoContentTask(videoContentNode as object)
m.top.content = videoContentNode
m.videoContentTask = StartAsyncTask(VideoContentTask, {
content: videoContentNode,
invidious: m.top.invidious,
preferences: m.top.preferences,
content: videoContentNode
invidious: m.top.invidious
preferences: m.top.preferences
playletServerPort: m.top.webServer.port
}, OnVideoContentTaskResults)
end function
@@ -110,7 +110,7 @@ end function
function MarkVideoWatched(videoId as string)
if m.top.invidious.authToken <> invalid
StartAsyncTask(MarkVideoWatchedTask, {
videoId: videoId,
videoId: videoId
invidious: m.top.invidious
})
end if
@@ -1,12 +1,12 @@
function SetPlayerStyle()
m.top.trickPlayBar.filledBarBlendColor = "0xFF1C30FF"
m.top.bufferingBar.filledBarBlendColor = "0xFF1C30FF"
m.top.retrievingBar.filledBarBlendColor = "0xFF1C30FF"
m.top.trickPlayBar.filledBarBlendColor = "#FF1C30FF"
m.top.bufferingBar.filledBarBlendColor = "#FF1C30FF"
m.top.retrievingBar.filledBarBlendColor = "#FF1C30FF"
' Find the BusySpinner built into the Video node
busySpinner = FindChildNodeOfType(m.top, "BusySpinner")
if busySpinner <> invalid
busySpinner.poster.blendColor = "0xFF1C30FF"
busySpinner.poster.blendColor = "#FF1C30FF"
end if
end function