Compare commits

...
11 Commits
21 changed files with 198 additions and 98 deletions

No files matched your search

+13
View File
@@ -5,6 +5,19 @@ 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.43.4] - 2025-11-03
### Fixed
- Playback error when regular videos are returned with DRM protection (unless they are OTF)
- Fallback to iOS HLS for post dvr and OTF videos
## [0.43.3] - 2025-10-30
### Fixed
- Improve channel parsing in Recommended feed
## [0.43.2] - 2025-10-29
### Fixed
+33 -32
View File
@@ -1,21 +1,21 @@
{
"name": "playlet",
"version": "0.43.2",
"version": "0.43.4",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "playlet",
"version": "0.43.2",
"version": "0.43.4",
"hasInstallScript": true,
"devDependencies": {
"@rokucommunity/bslint": "^0.8.37",
"@rokucommunity/bslint": "^0.8.38",
"@types/crypto-js": "^4.2.2",
"@types/fs-extra": "^11.0.4",
"@types/node": "^24.9.1",
"@types/node": "^24.9.2",
"@types/xml2js": "^0.4.14",
"argparse": "^2.0.1",
"brighterscript": "0.70.2",
"brighterscript": "0.70.3",
"brighterscript-formatter": "^1.7.19",
"convert-svg-to-png": "^0.7.1",
"crypto-js": "^4.2.0",
@@ -27,8 +27,8 @@
"json5": "^2.2.3",
"mailparser": "^3.7.5",
"protocol-buffers-schema": "^3.6.0",
"puppeteer": "^24.26.1",
"roku-deploy": "^3.13.0",
"puppeteer": "^24.27.0",
"roku-deploy": "^3.14.4",
"roku-test-automation": "^2.2.1",
"rooibos-roku": "5.15.5",
"rounded-rect-9patch": "^1.1.2",
@@ -415,9 +415,9 @@
"dev": true
},
"node_modules/@rokucommunity/bslint": {
"version": "0.8.37",
"resolved": "https://registry.npmjs.org/@rokucommunity/bslint/-/bslint-0.8.37.tgz",
"integrity": "sha512-22/1RqqI0S95Qd9XuSq9G9U/15pR9qOAQTKNjyZ2OQukWyhjEMJPdB7Yy2MOut56OjSwoJ1ihvWFeWN3snCccw==",
"version": "0.8.38",
"resolved": "https://registry.npmjs.org/@rokucommunity/bslint/-/bslint-0.8.38.tgz",
"integrity": "sha512-HpAkxWHev3d/d9thJsSwjO8fP18IRspjI2xS95EAz0GIPrsEdWuazoa+dXwHcAHrJ8QDGVMBg2nyZRwyvt7hYw==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -737,9 +737,9 @@
"license": "MIT"
},
"node_modules/@types/node": {
"version": "24.9.1",
"resolved": "https://registry.npmjs.org/@types/node/-/node-24.9.1.tgz",
"integrity": "sha512-QoiaXANRkSXK6p0Duvt56W208du4P9Uye9hWLWgGMDTEoKPhuenzNcC4vGUmrNkiOKTlIrBoyNQYNpSwfEZXSg==",
"version": "24.9.2",
"resolved": "https://registry.npmjs.org/@types/node/-/node-24.9.2.tgz",
"integrity": "sha512-uWN8YqxXxqFMX2RqGOrumsKeti4LlmIMIyV0lgut4jx7KQBcBiW6vkDtIBvHnHIquwNfJhk8v2OtmO8zXWHfPA==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -1280,9 +1280,9 @@
}
},
"node_modules/brighterscript": {
"version": "0.70.2",
"resolved": "https://registry.npmjs.org/brighterscript/-/brighterscript-0.70.2.tgz",
"integrity": "sha512-BHCZOKUNM4Pt7uLcA9JhQ17rxGnEz60dUdMfANTXGa8gYVjLNVd2WwVQS1L8roYRUuKXc83Hk01uxzmrcGmz9Q==",
"version": "0.70.3",
"resolved": "https://registry.npmjs.org/brighterscript/-/brighterscript-0.70.3.tgz",
"integrity": "sha512-R9r/AWvxDZioTfDvRZT50yO+PAHl/nElKA3SO9eWfmF43J88CBEtLT1dpLfFPfmPfdtxjcF58ZW87rmcqqYVyA==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -1312,7 +1312,7 @@
"parse-ms": "^2.1.0",
"readline": "^1.3.0",
"require-relative": "^0.8.7",
"roku-deploy": "^3.13.0",
"roku-deploy": "^3.14.4",
"safe-json-stringify": "^1.2.0",
"serialize-error": "^7.0.1",
"source-map": "^0.7.4",
@@ -5318,9 +5318,9 @@
}
},
"node_modules/puppeteer": {
"version": "24.26.1",
"resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-24.26.1.tgz",
"integrity": "sha512-3RG2UqclzMFolM2fS4bN8t5/EjZ0VwEoAGVxG8PMGeprjLzj+x0U4auH7MQ4B6ftW+u1JUnTTN8ab4ABPdl4mA==",
"version": "24.27.0",
"resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-24.27.0.tgz",
"integrity": "sha512-eEcAFGxmHRSrk74DVkFAMAwfj4l3Ak8avBuA2bZaAoocY1+Fb9WLS3I7jlOc/tIOU7EmGLiDdVP08R44wADpHw==",
"dev": true,
"hasInstallScript": true,
"license": "Apache-2.0",
@@ -5328,8 +5328,8 @@
"@puppeteer/browsers": "2.10.12",
"chromium-bidi": "10.5.1",
"cosmiconfig": "^9.0.0",
"devtools-protocol": "0.0.1508733",
"puppeteer-core": "24.26.1",
"devtools-protocol": "0.0.1521046",
"puppeteer-core": "24.27.0",
"typed-query-selector": "^2.12.0"
},
"bin": {
@@ -5460,9 +5460,9 @@
"license": "MIT"
},
"node_modules/puppeteer/node_modules/devtools-protocol": {
"version": "0.0.1508733",
"resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1508733.tgz",
"integrity": "sha512-QJ1R5gtck6nDcdM+nlsaJXcelPEI7ZxSMw1ujHpO1c4+9l+Nue5qlebi9xO1Z2MGr92bFOQTW7/rrheh5hHxDg==",
"version": "0.0.1521046",
"resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1521046.tgz",
"integrity": "sha512-vhE6eymDQSKWUXwwA37NtTTVEzjtGVfDr3pRbsWEQ5onH/Snp2c+2xZHWJJawG/0hCCJLRGt4xVtEVUVILol4w==",
"dev": true,
"license": "BSD-3-Clause"
},
@@ -5474,16 +5474,16 @@
"license": "MIT"
},
"node_modules/puppeteer/node_modules/puppeteer-core": {
"version": "24.26.1",
"resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-24.26.1.tgz",
"integrity": "sha512-YHZdo3chJ5b9pTYVnuDuoI3UX/tWJFJyRZvkLbThGy6XeHWC+0KI8iN0UMCkvde5l/YOk3huiVZ/PvwgSbwdrA==",
"version": "24.27.0",
"resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-24.27.0.tgz",
"integrity": "sha512-yubwj2XXmTM3wRIpbhO5nCjbByPgpFHlgrsD4IK+gMPqO7/a5FfnoSXDKjmqi8A2M1Ewusz0rTI/r+IN0GU0MA==",
"dev": true,
"license": "Apache-2.0",
"dependencies": {
"@puppeteer/browsers": "2.10.12",
"chromium-bidi": "10.5.1",
"debug": "^4.4.3",
"devtools-protocol": "0.0.1508733",
"devtools-protocol": "0.0.1521046",
"typed-query-selector": "^2.12.0",
"webdriver-bidi-protocol": "0.3.8",
"ws": "^8.18.3"
@@ -6355,9 +6355,9 @@
}
},
"node_modules/roku-deploy": {
"version": "3.13.0",
"resolved": "https://registry.npmjs.org/roku-deploy/-/roku-deploy-3.13.0.tgz",
"integrity": "sha512-Bmg2n/NzZmnydfsGeCtMiXagRkm3o4xB8OYGy33NT1+Ghn9tWeniDmzWO8/G3hTbqtqG/jYpWBpSuzVwUUaNGQ==",
"version": "3.14.4",
"resolved": "https://registry.npmjs.org/roku-deploy/-/roku-deploy-3.14.4.tgz",
"integrity": "sha512-JWx+VetKadMPnGrc80cQCSaJSuTtR1tAA/3JiygFBJiK7gPYBCx8/2c9fq1wajuJ+t/0dqP7XYD/6v33nliFwA==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -6375,6 +6375,7 @@
"moment": "^2.29.1",
"parse-ms": "^2.1.0",
"postman-request": "^2.88.1-postman.40",
"semver": "^7.7.3",
"temp-dir": "^2.0.0",
"xml2js": "^0.5.0"
},
+6 -6
View File
@@ -1,15 +1,15 @@
{
"name": "playlet",
"version": "0.43.2",
"version": "0.43.4",
"description": "Unofficial YouTube client for Roku",
"devDependencies": {
"@rokucommunity/bslint": "^0.8.37",
"@rokucommunity/bslint": "^0.8.38",
"@types/crypto-js": "^4.2.2",
"@types/fs-extra": "^11.0.4",
"@types/node": "^24.9.1",
"@types/node": "^24.9.2",
"@types/xml2js": "^0.4.14",
"argparse": "^2.0.1",
"brighterscript": "0.70.2",
"brighterscript": "0.70.3",
"brighterscript-formatter": "^1.7.19",
"convert-svg-to-png": "^0.7.1",
"crypto-js": "^4.2.0",
@@ -21,8 +21,8 @@
"json5": "^2.2.3",
"mailparser": "^3.7.5",
"protocol-buffers-schema": "^3.6.0",
"puppeteer": "^24.26.1",
"roku-deploy": "^3.13.0",
"puppeteer": "^24.27.0",
"roku-deploy": "^3.14.4",
"roku-test-automation": "^2.2.1",
"rooibos-roku": "5.15.5",
"rounded-rect-9patch": "^1.1.2",
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "playlet-app",
"version": "0.43.2",
"version": "0.43.4",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "playlet-app",
"version": "0.43.2"
"version": "0.43.4"
}
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "playlet-app",
"version": "0.43.2",
"version": "0.43.4",
"description": "Unofficial YouTube client for Roku",
"scripts": {
"prebuild": "node ../tools/rm.js ../build/playlet-app",
+2 -2
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=43
build_version=00002
build_version=00004
ui_resolutions=hd
uri_resolution_autosub=$$RES$$,480p,720p,1080p
@@ -38,4 +38,4 @@ playlet_lib_zip_debug_url=http://DEBUG_HOST_IP_ADDRESS:8086/playlet-lib.zip
git_commit_sha=unknown
bs_const=DEBUG=false;DEBUG_FALLBACK_TO_EMBEDDED=true
bs_const=DEBUG=false;TEST_MODE=false;DEBUG_FALLBACK_TO_EMBEDDED=true
+8 -1
View File
@@ -35,7 +35,14 @@ namespace Logger
msg += `app_state: ${lastExitInfo.app_state}\n`
msg += `media_player_state: ${lastExitInfo.media_player_state}\n`
msg += `mem_limit: ${lastExitInfo.mem_limit}\n`
msg += `console_log:\n${lastExitInfo.console_log}\n`
' Sometimes lastExitInfo.console_log would contain 'AppExitComplete', which
' is used to detect test runner exits. So we don't log it in test mode.
#if TEST_MODE
#else
msg += `console_log:\n${lastExitInfo.console_log}\n`
#end if
msg += `********** End Last Exit Info **********\n`
print msg
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "playlet-lib",
"version": "0.43.2",
"version": "0.43.4",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "playlet-lib",
"version": "0.43.2"
"version": "0.43.4"
}
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "playlet-lib",
"version": "0.43.2",
"version": "0.43.4",
"description": "Unofficial YouTube client for Roku",
"scripts": {
"prebuild": "node ../tools/rm.js ../build/playlet-lib",
+13 -8
View File
@@ -59,14 +59,19 @@ function LoggerLoop()
DeleteFile(previousLogsFile)
MoveFile(logsFile, previousLogsFile)
startUpLogs = ReadAsciiFile(FILENAME_STARTUP)
if not StringUtils.IsNullOrEmpty(startUpLogs)
line = `************* Startup Logs *************\n${startUpLogs}*********** End Startup Logs ***********\n`
print line
buffer.FromAsciiString(line)
buffer.AppendFile(logsFile)
end if
' Sometimes lastExitInfo.console_log (which would be contained in startUpLogs)
' would contain 'AppExitComplete', which is used to detect test runner exits.
' So we don't log it in test mode.
#if TEST_MODE
#else
startUpLogs = ReadAsciiFile(FILENAME_STARTUP)
if not StringUtils.IsNullOrEmpty(startUpLogs)
line = `************* Startup Logs *************\n${startUpLogs}*********** End Startup Logs ***********\n`
print line
buffer.FromAsciiString(line)
buffer.AppendFile(logsFile)
end if
#end if
m.eventThrottleTimer = CreateObject("roTimespan")
appMemoryMonitor = CreateObject("roAppMemoryMonitor")
@@ -32,7 +32,7 @@ class DashManifest
}
end function
function fromVideoMetadata(metadata as object, qualityFilter as object, local as boolean) as string
function FromVideoMetadata(metadata as object, qualityFilter as object, local as boolean) as string
adaptiveFormats = []
adaptiveFormats.Append(metadata.adaptiveFormats)
@@ -91,9 +91,9 @@ class DashManifest
if xml.Node("Period")
id = 0
id = m.generateAudioAdaptationSets(xml, audioSets, audioStreams, id)
id = m.generateVideoAdaptationSets(xml, videoMimeTypes, videoStreams, id)
m.generateImageAdaptationSets(xml, storyboards, id)
id = m.GenerateAudioAdaptationSets(xml, audioSets, audioStreams, id)
id = m.GenerateVideoAdaptationSets(xml, videoMimeTypes, videoStreams, id)
m.GenerateImageAdaptationSets(xml, storyboards, id)
xml.End()
end if
@@ -103,7 +103,7 @@ class DashManifest
return xml.ToXmlString()
end function
function generateAudioAdaptationSets(xml as object, audioSets as object, audioStreams as object, id as integer) as integer
function GenerateAudioAdaptationSets(xml as object, audioSets as object, audioStreams as object, id as integer) as integer
for each audioSet in audioSets
adaptationSetAttributes = {
"id": `${id}`
@@ -157,7 +157,7 @@ class DashManifest
if StringUtils.IsNullOrEmpty(stream.index) or StringUtils.IsNullOrEmpty(stream.init)
xml.Comment(`[ERROR] Stream index: ${stream.index}, init: ${stream.init} is invalid for itag: ${stream.itag}`)
end if
if xml.Node("SegmentBase", { "indexRange": stream.index })
if xml.Node("SegmentBase", { "indexRange": stream.index, "indexRangeExact": "true" })
xml.EmptyNode("Initialization", { "range": stream.init })
xml.End()
@@ -175,7 +175,7 @@ class DashManifest
return id
end function
function generateVideoAdaptationSets(xml as object, videoMimeTypes as object, videoStreams as object, id as integer) as integer
function GenerateVideoAdaptationSets(xml as object, videoMimeTypes as object, videoStreams as object, id as integer) as integer
for each mimeType in videoMimeTypes
if xml.Node("AdaptationSet", {
"id": `${id}`
@@ -229,7 +229,7 @@ class DashManifest
if StringUtils.IsNullOrEmpty(stream.index) or StringUtils.IsNullOrEmpty(stream.init)
xml.Comment(`[ERROR] Stream index: ${stream.index}, init: ${stream.init} is invalid for itag: ${stream.itag}`)
end if
if xml.Node("SegmentBase", { "indexRange": stream.index })
if xml.Node("SegmentBase", { "indexRange": stream.index, "indexRangeExact": "true" })
xml.EmptyNode("Initialization", { "range": stream.init })
xml.End()
@@ -247,7 +247,7 @@ class DashManifest
return id
end function
function generateImageAdaptationSets(xml as object, storyboards as object, id as integer) as integer
function GenerateImageAdaptationSets(xml as object, storyboards as object, id as integer) as integer
' https://developer.roku.com/en-ca/docs/developer-program/media-playback/trick-mode/hls-and-dash.md#dash-standard-thumbnail-tiles
for i = storyboards.Count() - 1 to 0 step -1
storyboard = storyboards[i]
@@ -81,9 +81,9 @@ namespace InnertubeService
end if
playerResponseJson = playerResponse.Json()
isLive = Innertube.IsLiveStream(playerResponseJson)
if isLive and client = Innertube.ClientType.Tv
LogDebug("Live video detected, falling back to iOS for HLS streams.")
notDashSupported = Innertube.IsLiveStream(playerResponseJson) or Innertube.IsPostLiveDvr(playerResponseJson) or Innertube.IsTypeOTF(playerResponseJson)
if notDashSupported and client = Innertube.ClientType.Tv
LogDebug("Falling back to iOS client for live/DVR/OTF video.")
isLoggedIn = Innertube.ParseIsLoggedIn(playerResponseJson)
playbackTrackingUrls = Innertube.ParsePlaybackTrackingUrls(playerResponseJson, isLoggedIn)
client = Innertube.ClientType.IOS
@@ -1368,6 +1368,13 @@ namespace Innertube
return invalid
end if
' YouTube promo (purchase premium, etc) tileRenderer
thumbailUrl = ValidString(ObjectUtils.Dig(nodeData, ["header", "tileHeaderRenderer", "thumbnail", "thumbnails", 0, "url"]))
if thumbailUrl.InStr("gstatic.com/youtube/img/promos") <> -1
LogWarnNoTelemetry("Skipping tileRenderer without contentType for YouTube promo")
return invalid
end if
' "More news" tileRenderer
browseId = ValidString(ObjectUtils.Dig(nodeData, ["onSelectCommand", "browseEndpoint", "browseId"]))
if browseId = "FEtopics_news"
@@ -1390,7 +1397,7 @@ namespace Innertube
else if contentType = "TILE_CONTENT_TYPE_PLAYLIST"
return TileRendererTypePlaylist(nodeData, context)
else if contentType = "TILE_CONTENT_TYPE_CHANNEL"
' Not implemented yet - https://github.com/iBicha/playlet/issues/724
return TileRendererTypeChannel(nodeData, context)
else if contentType = "TILE_CONTENT_TYPE_EDU"
' Not implemented yet - https://github.com/iBicha/playlet/issues/751
end if
@@ -1592,6 +1599,42 @@ namespace Innertube
return invalid
end function
function TileRendererTypeChannel(nodeData as object, context as object) as object
channelId = nodeData["contentId"]
if not IsString(channelId)
Warning("Invalid channel ID in tileRendererTypeChannel", nodeData, context)
return invalid
end if
' TODO:P1 Channel IDs starting with "SC" are shows, not supported yet.
if channelId.StartsWith("SC")
LogWarnNoTelemetry("Shows are not supported yet in TileRendererTypeChannel")
return invalid
end if
renderedLines = []
lines = ObjectUtils.Dig(nodeData, ["metadata", "tileMetadataRenderer", "lines"])
if IsArray(lines)
for each line in lines
if not IsAssociativeArray(line)
continue for
end if
renderedLines.Push(ParseLineRenderer(line["lineRenderer"]))
end for
end if
channel = {
"type": "channel"
"authorId": channelId
"author": ParseText(ObjectUtils.Dig(nodeData, ["metadata", "tileMetadataRenderer", "title"]))
"authorThumbnails": ObjectUtils.Dig(nodeData, ["header", "tileHeaderRenderer", "thumbnail", "thumbnails"])
"lines": renderedLines
}
PushFeedItem(channel, context)
return invalid
end function
function ParseTileRendererAuthorId(nodeData as object) as dynamic
' We're checking in the long press menu if there's a browseId that starts with "UC".
' This is usually the the id of the channel.
@@ -610,6 +610,10 @@ namespace Innertube
return false
end function
function IsPostLiveDvr(payload as object) as boolean
return ValidBool(ObjectUtils.Dig(payload, ["videoDetails", "isPostLiveDvr"]))
end function
function FormatsHaveLiveStreamingData(formats as object) as boolean
if not IsArray(formats)
return false
@@ -623,4 +627,22 @@ namespace Innertube
return false
end function
function IsTypeOTF(payload as object) as boolean
return FormatsHasTypeOTF(ObjectUtils.Dig(payload, ["streamingData", "adaptiveFormats"]))
end function
function FormatsHasTypeOTF(formats as object) as boolean
if not IsArray(formats)
return false
end if
for each fmt in formats
if ValidString(fmt["type"]) = "FORMAT_STREAM_TYPE_OTF"
return true
end if
end for
return false
end function
end namespace
@@ -103,8 +103,8 @@ function ExecuteJob() as void
return
end if
isDrmDash = SupportsDrmDashManifest(metadata)
if isDrmDash
isDrm = not StringUtils.IsNullOrEmpty(metadata.drmParams)
if isDrm
licenseServerURL = UrlUtils.BuildUrl(`http://127.0.0.1:${playletServerPort}/api/innertube/get_drm_license`, invalid, {
videoId: metadata.videoId
drmParams: metadata.drmParams
@@ -129,8 +129,12 @@ function ExecuteJob() as void
playletStreamUrlIndex: 0
})
LogDebug("Setting first url:", streamUrls[0])
contentNode.url = streamUrls[0]
firstUrl = streamUrls[0]
LogDebug("Setting first url:", firstUrl)
if StringUtils.IsNullOrEmpty(firstUrl)
LogError("First stream URL is empty!")
end if
contentNode.url = firstUrl
SetCaptions(metadata, service, contentNode)
@@ -146,7 +150,7 @@ function CreateStreamUrls(metadata as object, service as Invidious.InvidiousServ
streamUrls = []
if SupportsDrmDashManifest(metadata)
if SupportsDrmDashManifestUrl(metadata)
dashUrl = UrlUtils.AppendQueryParams(`http://127.0.0.1:${playletServerPort}/api/dash`, {
url: metadata.dashUrl
})
@@ -191,11 +195,15 @@ function SupportsMuxedFormats(metadata as object) as boolean
return IsArray(metadata.formatStreams) and metadata.formatStreams.Count() > 0
end function
function SupportsDrmDashManifest(metadata as object) as boolean
function SupportsDrmDashManifestUrl(metadata as object) as boolean
if StringUtils.IsNullOrEmpty(metadata.drmParams)
return false
end if
if StringUtils.IsNullOrEmpty(metadata.dashUrl)
return false
end if
if StringUtils.IsNullOrEmpty(metadata.drmSessionId)
return false
end if
@@ -208,10 +216,6 @@ function SupportsDrmDashManifest(metadata as object) as boolean
return false
end if
if StringUtils.IsNullOrEmpty(metadata.dashUrl)
return false
end if
return true
end function
@@ -460,10 +460,11 @@ function OnVideoPlayerStateChange() as void
content.playletStreamUrlIndex = playletStreamUrlIndex
if playletStreamUrlIndex < playletStreamUrls.Count()
nextUrl = playletStreamUrls[playletStreamUrlIndex]
LogErrorNoTelemetry(`Stream ${currentUrl} failed to play. Trying next stream ${nextUrl}`)
msg = `Stream ${currentUrl} failed to play. Trying next stream ${nextUrl}`
LogErrorNoTelemetry(msg)
LogTelemetryEvent({
level: "error"
message: `Stream ${currentUrl} failed to play. Trying next stream ${nextUrl}`
message: msg
fingerprint: ["Stream <URL> failed to play. Trying next stream <URL>"]
})
@@ -578,9 +579,11 @@ function ReportVideoError(errorData as object, url as string) as void
}]
end if
position = m.top.position
duration = m.top.duration
LogTelemetryEvent({
level: "error"
message: errorData.title + " " + errorData.body + `\nurl: ${url}`
message: errorData.title + " " + errorData.body + `\nurl: ${url}\nposition: ${position}\nduration: ${duration}`
fingerprint: errorData.fingerprint
attachments: attachments
})
@@ -53,7 +53,7 @@ namespace Http
m.dashManifest.invidiousInstance = m.invidiousService.GetInstance()
qualityFilter = m.CreateQualityFilter(quality)
xmlContent = m.dashManifest.fromVideoMetadata(metadata, qualityFilter, ValidString(local) = "true")
xmlContent = m.dashManifest.FromVideoMetadata(metadata, qualityFilter, ValidString(local) = "true")
response.http_code = 200
response.SetBodyDataString(xmlContent)
@@ -115,7 +115,7 @@ namespace Http
xml = new XmlObject()
manifestObj = new DashManifest("")
manifestObj.generateImageAdaptationSets(xml, storyboards, 100)
manifestObj.GenerateImageAdaptationSets(xml, storyboards, 100)
storyboardXml = xml.ToXmlString(false)
newDashContent = dashContent.Left(storyboardIndex) + storyboardXml + dashContent.Mid(storyboardIndex)
+2 -2
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=43
build_version=00002
build_version=00004
ui_resolutions=hd
uri_resolution_autosub=$$RES$$,480p,720p,1080p
@@ -13,4 +13,4 @@ hidden=1
git_commit_sha=unknown
bs_const=DEBUG=false
bs_const=DEBUG=false;TEST_MODE=false
+10 -10
View File
@@ -1,12 +1,12 @@
{
"name": "playlet-web",
"version": "0.43.2",
"version": "0.43.4",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "playlet-web",
"version": "0.43.2",
"version": "0.43.4",
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^6.2.1",
"@tailwindcss/postcss": "^4.1.16",
@@ -15,13 +15,13 @@
"@vitejs/plugin-legacy": "^7.2.1",
"autoprefixer": "^10.4.21",
"bgutils-js": "^3.2.0",
"daisyui": "^5.3.9",
"daisyui": "^5.3.10",
"dotenv": "^17.2.3",
"ip": "^2.0.1",
"jszip": "^3.10.1",
"postcss": "^8.5.6",
"rollup-plugin-visualizer": "^6.0.5",
"svelte": "^5.41.4",
"svelte": "^5.43.2",
"svelte-check": "^4.3.3",
"svelte-preprocess": "^6.0.3",
"tailwindcss": "^4.1.16",
@@ -3123,9 +3123,9 @@
}
},
"node_modules/daisyui": {
"version": "5.3.9",
"resolved": "https://registry.npmjs.org/daisyui/-/daisyui-5.3.9.tgz",
"integrity": "sha512-741x1pGGSGHcrBYtdE7iKbqW1OoiijYdAZ8oJPZR9MhSKLcMBlHjKfN3YlM2/K7t5jd7O0sg4SqkVNPylalRFw==",
"version": "5.3.10",
"resolved": "https://registry.npmjs.org/daisyui/-/daisyui-5.3.10.tgz",
"integrity": "sha512-vmjyPmm0hvFhA95KB6uiGmWakziB2pBv6CUcs5Ka/3iMBMn9S+C3SZYx9G9l2JrgTZ1EFn61F/HrPcwaUm2kLQ==",
"dev": true,
"license": "MIT",
"funding": {
@@ -4403,9 +4403,9 @@
}
},
"node_modules/svelte": {
"version": "5.41.4",
"resolved": "https://registry.npmjs.org/svelte/-/svelte-5.41.4.tgz",
"integrity": "sha512-sBrVmskY0eij5+CSSuMK1kOk1xSiRh0BRTEhUnxnd1x3p42GbQmm4rwq4WMD23rUG3QR53Nfv8kpaER3tV5F4A==",
"version": "5.43.2",
"resolved": "https://registry.npmjs.org/svelte/-/svelte-5.43.2.tgz",
"integrity": "sha512-ro1umEzX8rT5JpCmlf0PPv7ncD8MdVob9e18bhwqTKNoLjS8kDvhVpaoYVPc+qMwDAOfcwJtyY7ZFSDbOaNPgA==",
"dev": true,
"license": "MIT",
"dependencies": {
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "playlet-web",
"version": "0.43.2",
"version": "0.43.4",
"type": "module",
"scripts": {
"dev": "vite",
@@ -16,13 +16,13 @@
"@vitejs/plugin-legacy": "^7.2.1",
"autoprefixer": "^10.4.21",
"bgutils-js": "^3.2.0",
"daisyui": "^5.3.9",
"daisyui": "^5.3.10",
"dotenv": "^17.2.3",
"ip": "^2.0.1",
"jszip": "^3.10.1",
"postcss": "^8.5.6",
"rollup-plugin-visualizer": "^6.0.5",
"svelte": "^5.41.4",
"svelte": "^5.43.2",
"svelte-check": "^4.3.3",
"svelte-preprocess": "^6.0.3",
"tailwindcss": "^4.1.16",
+2
View File
@@ -42,6 +42,8 @@ export class ManifestEditPlugin implements CompilerPlugin {
// Test flag
// @ts-ignore
const testMode = !!builder.options.testMode;
builder.logger.log(`Setting bs_const TEST_MODE to ${testMode}`)
manifestContent = manifestContent.replace(/TEST_MODE=(true|false)/i, `TEST_MODE=${testMode}`);
if (testMode) {
builder.logger.log(`Commenting out "sg_component_libs_provided"`)
manifestContent = manifestContent.replace(/sg_component_libs_provided=/i, `# sg_component_libs_provided=`);