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
@@ -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
|
||||
|
||||
Reference in new issue
Block a user