Compare commits

..
16 Commits
27 changed files with 507 additions and 132 deletions

No files matched your search

+19
View File
@@ -5,6 +5,25 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [0.41.20] - 2025-09-21
### Fixed
- Capturing diagnostic events related to playback errors to further investigate
## [0.41.19] - 2025-09-21
### Fixed
- Capturing diagnostic events related to playback errors to further investigate
## [0.41.18] - 2025-09-20
### Fixed
- Various fixes and improvements
- Crash due to bad type casting
## [0.41.17] - 2025-09-19
### Fixed
+40 -40
View File
@@ -1,18 +1,18 @@
{
"name": "playlet",
"version": "0.41.17",
"version": "0.41.20",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "playlet",
"version": "0.41.17",
"version": "0.41.20",
"hasInstallScript": true,
"devDependencies": {
"@rokucommunity/bslint": "^0.8.35",
"@types/crypto-js": "^4.2.2",
"@types/fs-extra": "^11.0.4",
"@types/node": "^24.3.3",
"@types/node": "^24.5.2",
"@types/xml2js": "^0.4.14",
"argparse": "^2.0.1",
"brighterscript": "0.70.1",
@@ -20,14 +20,14 @@
"convert-svg-to-png": "^0.7.1",
"crypto-js": "^4.2.0",
"dotenv": "^17.2.2",
"fs-extra": "^11.3.1",
"fs-extra": "^11.3.2",
"glob": "^11.0.3",
"imap": "^0.8.19",
"ip": "^2.0.1",
"json5": "^2.2.3",
"mailparser": "^3.7.4",
"protocol-buffers-schema": "^3.6.0",
"puppeteer": "^24.20.0",
"puppeteer": "^24.22.0",
"roku-deploy": "^3.13.0",
"roku-test-automation": "^2.2.1",
"rooibos-roku": "5.15.5",
@@ -43,7 +43,7 @@
"node": "22"
},
"optionalDependencies": {
"@rollup/rollup-linux-x64-gnu": "^4.50.1"
"@rollup/rollup-linux-x64-gnu": "^4.52.0"
}
},
"node_modules/@babel/code-frame": {
@@ -573,9 +573,9 @@
}
},
"node_modules/@rollup/rollup-linux-x64-gnu": {
"version": "4.50.1",
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.50.1.tgz",
"integrity": "sha512-MCgtFB2+SVNuQmmjHf+wfI4CMxy3Tk8XjA5Z//A0AKD7QXUYFMQcns91K6dEHBvZPCnhJSyDWLApk40Iq/H3tA==",
"version": "4.52.0",
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.52.0.tgz",
"integrity": "sha512-nmSVN+F2i1yKZ7rJNKO3G7ZzmxJgoQBQZ/6c4MuS553Grmr7WqR7LLDcYG53Z2m9409z3JLt4sCOhLdbKQ3HmA==",
"cpu": [
"x64"
],
@@ -736,13 +736,13 @@
"license": "MIT"
},
"node_modules/@types/node": {
"version": "24.3.3",
"resolved": "https://registry.npmjs.org/@types/node/-/node-24.3.3.tgz",
"integrity": "sha512-GKBNHjoNw3Kra1Qg5UXttsY5kiWMEfoHq2TmXb+b1rcm6N7B3wTrFYIf/oSZ1xNQ+hVVijgLkiDZh7jRRsh+Gw==",
"version": "24.5.2",
"resolved": "https://registry.npmjs.org/@types/node/-/node-24.5.2.tgz",
"integrity": "sha512-FYxk1I7wPv3K2XBaoyH2cTnocQEu8AOZ60hPbsyukMPLv5/5qr7V1i8PLHdl6Zf87I+xZXFvPCXYjiTFq+YSDQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"undici-types": "~7.10.0"
"undici-types": "~7.12.0"
}
},
"node_modules/@types/qs": {
@@ -2538,9 +2538,9 @@
"dev": true
},
"node_modules/debug": {
"version": "4.4.1",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz",
"integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==",
"version": "4.4.3",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
"integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -3355,9 +3355,9 @@
}
},
"node_modules/fs-extra": {
"version": "11.3.1",
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.3.1.tgz",
"integrity": "sha512-eXvGGwZ5CL17ZSwHWd3bbgk7UUpF6IFHtP57NYYakPvHOs8GDgDe5KJI36jIJzDkJ6eJjuzRA8eBQb6SkKue0g==",
"version": "11.3.2",
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.3.2.tgz",
"integrity": "sha512-Xr9F6z6up6Ws+NjzMCZc6WXg2YFRlrLP9NQDO3VQrWrfiojdhS56TzueT88ze0uBdCTwEIhQ3ptnmKeWGFAe0A==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -5300,18 +5300,18 @@
}
},
"node_modules/puppeteer": {
"version": "24.20.0",
"resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-24.20.0.tgz",
"integrity": "sha512-iLnLV9oHKKAujmxiSxRWKfcT1q2COu0g1N9iU2TCp1MlmsyjgNAkcBOR3cAOqKb5UTiVPIGG4z5PO5yfpYZ6jA==",
"version": "24.22.0",
"resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-24.22.0.tgz",
"integrity": "sha512-QabGIvu7F0hAMiKGHZCIRHMb6UoH0QAJA2OaqxEU2tL5noXPrxUcotg2l3ttOA4p1PFnVIGkr6PXRAWlM2evVQ==",
"dev": true,
"hasInstallScript": true,
"license": "Apache-2.0",
"dependencies": {
"@puppeteer/browsers": "2.10.9",
"@puppeteer/browsers": "2.10.10",
"chromium-bidi": "8.0.0",
"cosmiconfig": "^9.0.0",
"devtools-protocol": "0.0.1495869",
"puppeteer-core": "24.20.0",
"puppeteer-core": "24.22.0",
"typed-query-selector": "^2.12.0"
},
"bin": {
@@ -5345,13 +5345,13 @@
"dev": true
},
"node_modules/puppeteer/node_modules/@puppeteer/browsers": {
"version": "2.10.9",
"resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-2.10.9.tgz",
"integrity": "sha512-kUGHwABarVhvMP+zhW5zvDA7LmGcd4TwrTEBwcTQic5EebUqaK5NjC0UXLJepIFVGsr2N/Z8NJQz2JYGo1ZwxA==",
"version": "2.10.10",
"resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-2.10.10.tgz",
"integrity": "sha512-3ZG500+ZeLql8rE0hjfhkycJjDj0pI/btEh3L9IkWUYcOrgP0xCNRq3HbtbqOPbvDhFaAWD88pDFtlLv8ns8gA==",
"dev": true,
"license": "Apache-2.0",
"dependencies": {
"debug": "^4.4.1",
"debug": "^4.4.3",
"extract-zip": "^2.0.1",
"progress": "^2.0.3",
"proxy-agent": "^6.5.0",
@@ -5456,18 +5456,18 @@
"license": "MIT"
},
"node_modules/puppeteer/node_modules/puppeteer-core": {
"version": "24.20.0",
"resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-24.20.0.tgz",
"integrity": "sha512-n0y/f8EYyZt4yEJkjP3Vrqf9A4qa3uYpKYdsiedIY4bxIfTw1aAJSpSVPmWBPlr1LO4cNq2hGNIBWKPhvBF68w==",
"version": "24.22.0",
"resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-24.22.0.tgz",
"integrity": "sha512-oUeWlIg0pMz8YM5pu0uqakM+cCyYyXkHBxx9di9OUELu9X9+AYrNGGRLK9tNME3WfN3JGGqQIH3b4/E9LGek/w==",
"dev": true,
"license": "Apache-2.0",
"dependencies": {
"@puppeteer/browsers": "2.10.9",
"@puppeteer/browsers": "2.10.10",
"chromium-bidi": "8.0.0",
"debug": "^4.4.1",
"debug": "^4.4.3",
"devtools-protocol": "0.0.1495869",
"typed-query-selector": "^2.12.0",
"webdriver-bidi-protocol": "0.2.8",
"webdriver-bidi-protocol": "0.2.11",
"ws": "^8.18.3"
},
"engines": {
@@ -7502,9 +7502,9 @@
}
},
"node_modules/undici-types": {
"version": "7.10.0",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.10.0.tgz",
"integrity": "sha512-t5Fy/nfn+14LuOc2KNYg75vZqClpAiqscVvMygNnlsHBFpSXdJaYtXMcdNLpl/Qvc3P2cB3s6lOV51nqsFq4ag==",
"version": "7.12.0",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.12.0.tgz",
"integrity": "sha512-goOacqME2GYyOZZfb5Lgtu+1IDmAlAEu5xnD3+xTzS10hT0vzpf0SPjkXwAw9Jm+4n/mQGDP3LO8CPbYROeBfQ==",
"dev": true,
"license": "MIT"
},
@@ -7696,9 +7696,9 @@
"dev": true
},
"node_modules/webdriver-bidi-protocol": {
"version": "0.2.8",
"resolved": "https://registry.npmjs.org/webdriver-bidi-protocol/-/webdriver-bidi-protocol-0.2.8.tgz",
"integrity": "sha512-KPvtVAIX8VHjLZH1KHT5GXoOaPeb0Ju+JlAcdshw6Z/gsmRtLoxt0Hw99PgJwZta7zUQaAUIHHWDRkzrPHsQTQ==",
"version": "0.2.11",
"resolved": "https://registry.npmjs.org/webdriver-bidi-protocol/-/webdriver-bidi-protocol-0.2.11.tgz",
"integrity": "sha512-Y9E1/oi4XMxcR8AT0ZC4OvYntl34SPgwjmELH+owjBr0korAX4jKgZULBWILGCVGdVCQ0dodTToIETozhG8zvA==",
"dev": true,
"license": "Apache-2.0"
},
+5 -5
View File
@@ -1,12 +1,12 @@
{
"name": "playlet",
"version": "0.41.17",
"version": "0.41.20",
"description": "Unofficial YouTube client for Roku",
"devDependencies": {
"@rokucommunity/bslint": "^0.8.35",
"@types/crypto-js": "^4.2.2",
"@types/fs-extra": "^11.0.4",
"@types/node": "^24.3.3",
"@types/node": "^24.5.2",
"@types/xml2js": "^0.4.14",
"argparse": "^2.0.1",
"brighterscript": "0.70.1",
@@ -14,14 +14,14 @@
"convert-svg-to-png": "^0.7.1",
"crypto-js": "^4.2.0",
"dotenv": "^17.2.2",
"fs-extra": "^11.3.1",
"fs-extra": "^11.3.2",
"glob": "^11.0.3",
"imap": "^0.8.19",
"ip": "^2.0.1",
"json5": "^2.2.3",
"mailparser": "^3.7.4",
"protocol-buffers-schema": "^3.6.0",
"puppeteer": "^24.20.0",
"puppeteer": "^24.22.0",
"roku-deploy": "^3.13.0",
"roku-test-automation": "^2.2.1",
"rooibos-roku": "5.15.5",
@@ -74,6 +74,6 @@
"shutdown": "node tools/shutdown.js"
},
"optionalDependencies": {
"@rollup/rollup-linux-x64-gnu": "^4.50.1"
"@rollup/rollup-linux-x64-gnu": "^4.52.0"
}
}
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "playlet-app",
"version": "0.41.17",
"version": "0.41.20",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "playlet-app",
"version": "0.41.17"
"version": "0.41.20"
}
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "playlet-app",
"version": "0.41.17",
"version": "0.41.20",
"description": "Unofficial YouTube client for Roku",
"scripts": {
"prebuild": "rm -rf ../build/playlet-app",
+1 -1
View File
@@ -3,7 +3,7 @@ title=Playlet
# Do not update version manually, it is auto updated from package.json
major_version=0
minor_version=41
build_version=00017
build_version=00020
ui_resolutions=hd
uri_resolution_autosub=$$RES$$,480p,720p,1080p
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "playlet-lib",
"version": "0.41.17",
"version": "0.41.20",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "playlet-lib",
"version": "0.41.17"
"version": "0.41.20"
}
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "playlet-lib",
"version": "0.41.17",
"version": "0.41.20",
"description": "Unofficial YouTube client for Roku",
"scripts": {
"prebuild": "rm -rf ../build/playlet-lib",
@@ -93,9 +93,14 @@ namespace Innertube
' Ignored nodes:
' TODO:P2 radioRenderer seems like a Mix https://github.com/iBicha/playlet/issues/709
"radioRenderer": ParseNotImplemented
"compactRadioRenderer": ParseNotImplemented
' TODO:P2 A carousel of videos, found on the home tab of a channel.
' Should probably be parsed.
"carouselItemRenderer": ParseNotImplemented
' When searching for hashtags, this renderer is used.
' It redirects to a page similar to a channel page, with browseId "FEhashtag"
' the hashtag name is encoded in a proto and passed as a param to the browseEndpoint.
"hashtagTileRenderer": ParseNotImplemented
' Movies are not supported.
"movieRenderer": ParseNotImplemented
"compactMovieRenderer": ParseNotImplemented
@@ -140,6 +145,7 @@ namespace Innertube
"backgroundPromoRenderer": ParseNotImplemented
' Autocorrect for search terms
"showingResultsForRenderer": ParseNotImplemented
"includingResultsForRenderer": ParseNotImplemented
' "This channel has no podcasts."
"channelOwnerEmptyStateRenderer": ParseNotImplemented
' Live chat replay ("See what others said about this video while it was live.")
@@ -998,6 +1004,9 @@ namespace Innertube
return LockupViewModelTypePodcast(nodeData, context)
else if contentType = "LOCKUP_CONTENT_TYPE_ALBUM"
return LockupViewModelTypeAlbum(nodeData, context)
else if contentType = "TILE_CONTENT_TYPE_CHANNEL"
' Not implemented yet - https://github.com/iBicha/playlet/issues/724
return invalid
end if
Warning(`Unknown content type: ${contentType}`, nodeData, context)
@@ -101,8 +101,8 @@ namespace Innertube
hasLiveStreamingData = FormatsHaveLiveStreamingData(adaptiveFormats) or FormatsHaveLiveStreamingData(formats)
adaptiveFormats = TransformFormats(adaptiveFormats)
formats = TransformFormats(formats)
adaptiveFormats = TransformFormats(adaptiveFormats, not hasLiveStreamingData)
formats = TransformFormats(formats, false)
parsedResponse["type"] = "video"
parsedResponse["videoId"] = videoDetails["videoId"]
@@ -310,14 +310,32 @@ namespace Innertube
return captions
end function
function TransformFormats(formats as object) as object
function TransformFormats(formats as object, analyze as boolean) as object
analysis = invalid
if analyze
analysis = {
"issueDetected": false
}
end if
result = []
for i = 0 to formats.Count() - 1
formats[i] = TransformFormat(formats[i])
result.Push(TransformFormat(formats[i], analysis))
end for
return formats
if analyze and analysis.issueDetected
' Are these OTF streams?
LogTelemetryEvent({
level: "error"
message: `Some formats are missing initRange or indexRange\nFormats: ${FormatJson(formats)}`
fingerprint: ["Some formats are missing initRange or indexRange"]
})
end if
return result
end function
function TransformFormat(fmt as object) as object
function TransformFormat(fmt as object, analysis as object) as object
itag = `${fmt["itag"]}`
result = {
"bitrate": `${fmt["bitrate"]}`
@@ -332,11 +350,17 @@ namespace Innertube
result["init"] = `${fmt["initRange"]["start"]}-${fmt["initRange"]["end"]}`
else
result["init"] = ""
if analysis <> invalid
analysis.issueDetected = true
end if
end if
if IsAssociativeArray(fmt["indexRange"])
result["index"] = `${fmt["indexRange"]["start"]}-${fmt["indexRange"]["end"]}`
else
result["index"] = ""
if analysis <> invalid
analysis.issueDetected = true
end if
end if
if fmt["audioQuality"] <> invalid
@@ -434,11 +458,6 @@ namespace Innertube
response = request.Await()
if not response.IsSuccess()
if response.IsCancelled()
LogErrorNoTelemetry(response.ErrorMessage())
else
LogError(response.ErrorMessage())
end if
errorCode = ""
if response.StatusCode() = 400
json = response.Json()
@@ -456,6 +475,13 @@ namespace Innertube
if errorCode <> ""
exception.errorCode = errorCode
end if
if response.IsCancelled() or errorCode = "STS_MISMATCH"
LogErrorNoTelemetry(response.ErrorMessage())
else
LogError(response.ErrorMessage())
end if
return exception
end if
+29 -16
View File
@@ -136,25 +136,38 @@ namespace Sentry
return [fingerprint]
end function
function ReplaceRequestId(message as string) as string
function ReplaceRequestId(message as string) as dynamic
reqIdStart = `\nRequestId: `
requestIdIndex = message.InStr(reqIdStart)
if requestIdIndex = -1
reqIdPlaceholder = "<REQUEST_ID>"
result = message
replaced = false
searchIndex = 0
while true
requestIdIndex = result.InStr(searchIndex, reqIdStart)
if requestIdIndex = -1
exit while
end if
reqIdStartIndex = requestIdIndex + reqIdStart.Len()
newLineIndex = result.InStr(reqIdStartIndex, `\n`)
if newLineIndex = -1
exit while
end if
reqIdEndIndex = newLineIndex - 1
if (reqIdEndIndex <= reqIdStartIndex) or ((reqIdEndIndex - reqIdStartIndex) > 20)
exit while
end if
result = result.Mid(0, reqIdStartIndex) + reqIdPlaceholder + result.Mid(reqIdEndIndex + 1)
replaced = true
searchIndex = reqIdStartIndex + reqIdPlaceholder.Len()
end while
if not replaced
return invalid
end if
newLineIndex = message.InStr(requestIdIndex + reqIdStart.Len(), `\n`)
if newLineIndex = -1
return invalid
end if
reqIdStartIndex = requestIdIndex + reqIdStart.Len()
reqIdEndIndex = newLineIndex - 1
if (reqIdEndIndex <= reqIdStartIndex) or ((reqIdEndIndex - reqIdStartIndex) > 20)
return invalid
end if
fingerprint = message.Mid(0, reqIdStartIndex) + "<REQUEST_ID>" + message.Mid(reqIdEndIndex + 1)
return fingerprint
return result
end function
end namespace
+1 -1
View File
@@ -3,7 +3,7 @@ title=PlayletLib
# Do not update version manually, it is auto updated from package.json
major_version=0
minor_version=41
build_version=00017
build_version=00020
ui_resolutions=hd
uri_resolution_autosub=$$RES$$,480p,720p,1080p
+23 -43
View File
@@ -1,37 +1,37 @@
{
"name": "playlet-web",
"version": "0.41.17",
"version": "0.41.20",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "playlet-web",
"version": "0.41.17",
"version": "0.41.20",
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^6.2.0",
"@tailwindcss/postcss": "^4.1.13",
"@tailwindcss/typography": "^0.5.16",
"@tailwindcss/typography": "^0.5.18",
"@tsconfig/svelte": "^5.0.5",
"@vitejs/plugin-legacy": "^7.2.1",
"autoprefixer": "^10.4.21",
"bgutils-js": "^3.2.0",
"daisyui": "^5.1.10",
"daisyui": "^5.1.13",
"dotenv": "^17.2.2",
"ip": "^2.0.1",
"jszip": "^3.10.1",
"postcss": "^8.5.6",
"rollup-plugin-visualizer": "^6.0.3",
"svelte": "^5.38.10",
"svelte": "^5.39.3",
"svelte-check": "^4.3.1",
"svelte-preprocess": "^6.0.3",
"tailwindcss": "^4.1.13",
"terser": "^5.44.0",
"tslib": "^2.8.1",
"typescript": "^5.9.2",
"vite": "^7.1.5",
"vite": "^7.1.6",
"vite-plugin-compression": "^0.5.1",
"vite-tsconfig-paths": "^5.1.4",
"youtubei.js": "^15.1.0"
"youtubei.js": "^15.1.1"
}
},
"node_modules/@alloc/quick-lru": {
@@ -2683,14 +2683,12 @@
}
},
"node_modules/@tailwindcss/typography": {
"version": "0.5.16",
"resolved": "https://registry.npmjs.org/@tailwindcss/typography/-/typography-0.5.16.tgz",
"integrity": "sha512-0wDLwCVF5V3x3b1SGXPCDcdsbDHMBe+lkFzBRaHeLvNi+nrrnZ1lA18u+OTWO8iSWU2GxUOCvlXtDuqftc1oiA==",
"version": "0.5.18",
"resolved": "https://registry.npmjs.org/@tailwindcss/typography/-/typography-0.5.18.tgz",
"integrity": "sha512-dDIgwZOlf+tVkZ7A029VvQ1+ngKATENDjMEx2N35s2yPjfTS05RWSM8ilhEWSa5DMJ6ci2Ha9WNZEd2GQjrdQg==",
"dev": true,
"license": "MIT",
"dependencies": {
"lodash.castarray": "^4.4.0",
"lodash.isplainobject": "^4.0.6",
"lodash.merge": "^4.6.2",
"postcss-selector-parser": "6.0.10"
},
"peerDependencies": {
@@ -3153,9 +3151,9 @@
}
},
"node_modules/daisyui": {
"version": "5.1.10",
"resolved": "https://registry.npmjs.org/daisyui/-/daisyui-5.1.10.tgz",
"integrity": "sha512-p1J/HME2WmaSiy6u2alIbeP3gd5PNVft3+6Bdll0BRSm/UdI4084+pD01LxFug/5wGexNewWqbcEL6nB2n2o+Q==",
"version": "5.1.13",
"resolved": "https://registry.npmjs.org/daisyui/-/daisyui-5.1.13.tgz",
"integrity": "sha512-KWPF/4R+EHTJRqKZFNmSDPfAZ5xeS6YWB/2kS7Y6wGKg+atscUi2DOp6HoDD/OgGML0PJTtTpgwpTfeHVfjk7w==",
"dev": true,
"license": "MIT",
"funding": {
@@ -3873,12 +3871,6 @@
"integrity": "sha512-SW13ws7BjaeJ6p7Q6CO2nchbYEc3X3J6WrmTTDto7yMPqVSZTUyY5Tjbid+Ab8gLnATtygYtiDIJGQRRn2ZOiA==",
"dev": true
},
"node_modules/lodash.castarray": {
"version": "4.4.0",
"resolved": "https://registry.npmjs.org/lodash.castarray/-/lodash.castarray-4.4.0.tgz",
"integrity": "sha512-aVx8ztPv7/2ULbArGJ2Y42bG1mEQ5mGjpdvrbJcJFU3TbYybe+QlLS4pst9zV52ymy2in1KpFPiZnAOATxD4+Q==",
"dev": true
},
"node_modules/lodash.debounce": {
"version": "4.0.8",
"resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz",
@@ -3886,18 +3878,6 @@
"dev": true,
"license": "MIT"
},
"node_modules/lodash.isplainobject": {
"version": "4.0.6",
"resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz",
"integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==",
"dev": true
},
"node_modules/lodash.merge": {
"version": "4.6.2",
"resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz",
"integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",
"dev": true
},
"node_modules/lru-cache": {
"version": "5.1.1",
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",
@@ -4471,9 +4451,9 @@
}
},
"node_modules/svelte": {
"version": "5.38.10",
"resolved": "https://registry.npmjs.org/svelte/-/svelte-5.38.10.tgz",
"integrity": "sha512-UY+OhrWK7WI22bCZ00P/M3HtyWgwJPi9IxSRkoAE2MeAy6kl7ZlZWJZ8RaB+X4KD/G+wjis+cGVnVYaoqbzBqg==",
"version": "5.39.3",
"resolved": "https://registry.npmjs.org/svelte/-/svelte-5.39.3.tgz",
"integrity": "sha512-7Jwus6iXviGZAvhqbeYu3NNHA6LGyQ8EbmjdAhJUDade5rrW6g9VnBbRhUuYX4pMZLHozijsFolt88zvKPfsbQ==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -4813,9 +4793,9 @@
"dev": true
},
"node_modules/vite": {
"version": "7.1.5",
"resolved": "https://registry.npmjs.org/vite/-/vite-7.1.5.tgz",
"integrity": "sha512-4cKBO9wR75r0BeIWWWId9XK9Lj6La5X846Zw9dFfzMRw38IlTk2iCcUt6hsyiDRcPidc55ZParFYDXi0nXOeLQ==",
"version": "7.1.6",
"resolved": "https://registry.npmjs.org/vite/-/vite-7.1.6.tgz",
"integrity": "sha512-SRYIB8t/isTwNn8vMB3MR6E+EQZM/WG1aKmmIUCfDXfVvKfc20ZpamngWHKzAmmu9ppsgxsg4b2I7c90JZudIQ==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -5046,9 +5026,9 @@
}
},
"node_modules/youtubei.js": {
"version": "15.1.0",
"resolved": "https://registry.npmjs.org/youtubei.js/-/youtubei.js-15.1.0.tgz",
"integrity": "sha512-XwSXrbLpeER4gXArQ0NPRwfR9cUC3jVSZfHe4+LFGrambSHLO5wDR+vUm8tjDTC/SpGWj2Jxd9oQ5OXQolT9iQ==",
"version": "15.1.1",
"resolved": "https://registry.npmjs.org/youtubei.js/-/youtubei.js-15.1.1.tgz",
"integrity": "sha512-fuEDj9Ky6cAQg93BrRVCbr+GTYNZQAIFZrx/a3oDRuGc3Mf5bS0dQfoYwwgjtSV7sgAKQEEdGtzRdBzOc8g72Q==",
"dev": true,
"funding": [
"https://github.com/sponsors/LuanRT"
+6 -6
View File
@@ -1,6 +1,6 @@
{
"name": "playlet-web",
"version": "0.41.17",
"version": "0.41.20",
"type": "module",
"scripts": {
"dev": "vite",
@@ -11,27 +11,27 @@
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^6.2.0",
"@tailwindcss/postcss": "^4.1.13",
"@tailwindcss/typography": "^0.5.16",
"@tailwindcss/typography": "^0.5.18",
"@tsconfig/svelte": "^5.0.5",
"@vitejs/plugin-legacy": "^7.2.1",
"autoprefixer": "^10.4.21",
"bgutils-js": "^3.2.0",
"daisyui": "^5.1.10",
"daisyui": "^5.1.13",
"dotenv": "^17.2.2",
"ip": "^2.0.1",
"jszip": "^3.10.1",
"postcss": "^8.5.6",
"rollup-plugin-visualizer": "^6.0.3",
"svelte": "^5.38.10",
"svelte": "^5.39.3",
"svelte-check": "^4.3.1",
"svelte-preprocess": "^6.0.3",
"tailwindcss": "^4.1.13",
"terser": "^5.44.0",
"tslib": "^2.8.1",
"typescript": "^5.9.2",
"vite": "^7.1.5",
"vite": "^7.1.6",
"vite-plugin-compression": "^0.5.1",
"vite-tsconfig-paths": "^5.1.4",
"youtubei.js": "^15.1.0"
"youtubei.js": "^15.1.1"
}
}
+2 -3
View File
@@ -79,8 +79,7 @@ Function RALE_InitConfig() as Object
minSocketPort: 49152,
maxSocketPort: 65535,
screensaverResetTimeout: 30000,
' Note: commandTimeout reduced from 10000 to 1000 to improve responsiveness
commandTimeout: 1000,
commandTimeout: 10000,
defaultLogLevel: 3,
logFormat: "[RALE][%level%] - %message%"
}
@@ -2003,7 +2002,7 @@ Sub init()
m.logger = RALE_Logger(m.config.defaultLogLevel, m.config.logFormat)
m.socketConnection = RALE_SocketConnection()
m.sceneBG = m.top.GetScene().getChild(0)
m.raleVersion = "3.2.0"
m.raleVersion = "3.3.5"
m.sessionId = CreateObject("roDeviceInfo").GetRandomUUID()
m.logger.info("Roku Advanced Layout Editor v." + m.raleVersion)
+19
View File
@@ -0,0 +1,19 @@
# Invidious
Just an Invidious docker-compose setup for quick testing with Playlet.
Detailed instructions in <https://docs.invidious.io/installation/#docker-compose-method-production>
To run:
- Create a `.env` file next to `docker-compose.yml`
- Generate two random passwords of 16 characters (e.g. using command `pwgen 16 1`)
- Add the two variables to your `.env` file
```sh
INVIDIOUS_HMAC_KEY=PASSWORD_1
INVIDIOUS_COMPANION_KEY=PASSWORD_2
```
- Run `docker-compose up`
Invidious should now be running locally on port 3000.
+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
set -eou pipefail
psql --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" < config/sql/channels.sql
psql --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" < config/sql/videos.sql
psql --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" < config/sql/channel_videos.sql
psql --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" < config/sql/users.sql
psql --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" < config/sql/session_ids.sql
psql --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" < config/sql/nonces.sql
psql --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" < config/sql/annotations.sql
psql --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" < config/sql/playlists.sql
psql --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" < config/sql/playlist_videos.sql
@@ -0,0 +1,12 @@
-- Table: public.annotations
-- DROP TABLE public.annotations;
CREATE TABLE IF NOT EXISTS public.annotations
(
id text NOT NULL,
annotations xml,
CONSTRAINT annotations_id_key UNIQUE (id)
);
GRANT ALL ON TABLE public.annotations TO current_user;
@@ -0,0 +1,30 @@
-- Table: public.channel_videos
-- DROP TABLE public.channel_videos;
CREATE TABLE IF NOT EXISTS public.channel_videos
(
id text NOT NULL,
title text,
published timestamp with time zone,
updated timestamp with time zone,
ucid text,
author text,
length_seconds integer,
live_now boolean,
premiere_timestamp timestamp with time zone,
views bigint,
CONSTRAINT channel_videos_id_key UNIQUE (id)
);
GRANT ALL ON TABLE public.channel_videos TO current_user;
-- Index: public.channel_videos_ucid_idx
-- DROP INDEX public.channel_videos_ucid_idx;
CREATE INDEX IF NOT EXISTS channel_videos_ucid_idx
ON public.channel_videos
USING btree
(ucid COLLATE pg_catalog."default");
+25
View File
@@ -0,0 +1,25 @@
-- Table: public.channels
-- DROP TABLE public.channels;
CREATE TABLE IF NOT EXISTS public.channels
(
id text NOT NULL,
author text,
updated timestamp with time zone,
deleted boolean,
subscribed timestamp with time zone,
CONSTRAINT channels_id_key UNIQUE (id)
);
GRANT ALL ON TABLE public.channels TO current_user;
-- Index: public.channels_id_idx
-- DROP INDEX public.channels_id_idx;
CREATE INDEX IF NOT EXISTS channels_id_idx
ON public.channels
USING btree
(id COLLATE pg_catalog."default");
+22
View File
@@ -0,0 +1,22 @@
-- Table: public.nonces
-- DROP TABLE public.nonces;
CREATE TABLE IF NOT EXISTS public.nonces
(
nonce text,
expire timestamp with time zone,
CONSTRAINT nonces_id_key UNIQUE (nonce)
);
GRANT ALL ON TABLE public.nonces TO current_user;
-- Index: public.nonces_nonce_idx
-- DROP INDEX public.nonces_nonce_idx;
CREATE INDEX IF NOT EXISTS nonces_nonce_idx
ON public.nonces
USING btree
(nonce COLLATE pg_catalog."default");
@@ -0,0 +1,19 @@
-- Table: public.playlist_videos
-- DROP TABLE public.playlist_videos;
CREATE TABLE IF NOT EXISTS public.playlist_videos
(
title text,
id text,
author text,
ucid text,
length_seconds integer,
published timestamptz,
plid text references playlists(id),
index int8,
live_now boolean,
PRIMARY KEY (index,plid)
);
GRANT ALL ON TABLE public.playlist_videos TO current_user;
+29
View File
@@ -0,0 +1,29 @@
-- Type: public.privacy
-- DROP TYPE public.privacy;
CREATE TYPE public.privacy AS ENUM
(
'Public',
'Unlisted',
'Private'
);
-- Table: public.playlists
-- DROP TABLE public.playlists;
CREATE TABLE IF NOT EXISTS public.playlists
(
title text,
id text primary key,
author text,
description text,
video_count integer,
created timestamptz,
updated timestamptz,
privacy privacy,
index int8[]
);
GRANT ALL ON public.playlists TO current_user;
@@ -0,0 +1,23 @@
-- Table: public.session_ids
-- DROP TABLE public.session_ids;
CREATE TABLE IF NOT EXISTS public.session_ids
(
id text NOT NULL,
email text,
issued timestamp with time zone,
CONSTRAINT session_ids_pkey PRIMARY KEY (id)
);
GRANT ALL ON TABLE public.session_ids TO current_user;
-- Index: public.session_ids_id_idx
-- DROP INDEX public.session_ids_id_idx;
CREATE INDEX IF NOT EXISTS session_ids_id_idx
ON public.session_ids
USING btree
(id COLLATE pg_catalog."default");
+29
View File
@@ -0,0 +1,29 @@
-- Table: public.users
-- DROP TABLE public.users;
CREATE TABLE IF NOT EXISTS public.users
(
updated timestamp with time zone,
notifications text[],
subscriptions text[],
email text NOT NULL,
preferences text,
password text,
token text,
watched text[],
feed_needs_update boolean,
CONSTRAINT users_email_key UNIQUE (email)
);
GRANT ALL ON TABLE public.users TO current_user;
-- Index: public.email_unique_idx
-- DROP INDEX public.email_unique_idx;
CREATE UNIQUE INDEX IF NOT EXISTS email_unique_idx
ON public.users
USING btree
(lower(email) COLLATE pg_catalog."default");
+23
View File
@@ -0,0 +1,23 @@
-- Table: public.videos
-- DROP TABLE public.videos;
CREATE UNLOGGED TABLE IF NOT EXISTS public.videos
(
id text NOT NULL,
info text,
updated timestamp with time zone,
CONSTRAINT videos_pkey PRIMARY KEY (id)
);
GRANT ALL ON TABLE public.videos TO current_user;
-- Index: public.id_idx
-- DROP INDEX public.id_idx;
CREATE UNIQUE INDEX IF NOT EXISTS id_idx
ON public.videos
USING btree
(id COLLATE pg_catalog."default");
+86
View File
@@ -0,0 +1,86 @@
version: "3"
services:
invidious:
image: quay.io/invidious/invidious:latest
restart: unless-stopped
ports:
- "3000:3000"
environment:
# Please read the following file for a comprehensive list of all available
# configuration options and their associated syntax:
# https://github.com/iv-org/invidious/blob/master/config/config.example.yml
INVIDIOUS_CONFIG: |
db:
dbname: invidious
user: kemal
password: kemal
host: invidious-db
port: 5432
check_tables: true
invidious_companion:
# URL used for the internal communication between invidious and invidious companion
# There is no need to change that except if Invidious companion does not run on the same docker compose file.
- private_url: "http://companion:8282/companion"
# IT is NOT recommended to use the same key as HMAC KEY. Generate a new key!
# Use the key generated in the 2nd step
invidious_companion_key: $INVIDIOUS_COMPANION_KEY
# external_port:
# domain:
# https_only: false
# statistics_enabled: false
# Use the key generated in the 2nd step
hmac_key: $INVIDIOUS_HMAC_KEY
healthcheck:
test: wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/trending || exit 1
interval: 30s
timeout: 5s
retries: 2
logging:
options:
max-size: "1G"
max-file: "4"
depends_on:
- invidious-db
companion:
image: quay.io/invidious/invidious-companion:latest
environment:
# Use the key generated in the 2nd step
- SERVER_SECRET_KEY=$INVIDIOUS_COMPANION_KEY
restart: unless-stopped
# Uncomment only if you have configured "public_url" for Invidious companion
# Or if you want to use Invidious companion as an API in your program.
# Remove "127.0.0.1:" if used from an external IP
ports:
- "8282:8282"
logging:
options:
max-size: "1G"
max-file: "4"
cap_drop:
- ALL
read_only: true
# cache for youtube library
volumes:
- companioncache:/var/tmp/youtubei.js:rw
security_opt:
- no-new-privileges:true
invidious-db:
image: docker.io/library/postgres:14
restart: unless-stopped
volumes:
- postgresdata:/var/lib/postgresql/data
- ./config/sql:/config/sql
- ./docker/init-invidious-db.sh:/docker-entrypoint-initdb.d/init-invidious-db.sh
environment:
POSTGRES_DB: invidious
POSTGRES_USER: kemal
POSTGRES_PASSWORD: kemal
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
volumes:
postgresdata:
companioncache: