Reduce event count

This commit is contained in:
Brahim Hadriche committed 2025-08-29 18:18:42 -04:00
1 parent 34adf51ebb
commit b29678ff15
19 files changed
+37 -22

No files matched your search

@@ -192,17 +192,18 @@ class DashManifest
id += 1
end for
storyboardsAdded = false
' https://developer.roku.com/en-ca/docs/developer-program/media-playback/trick-mode/hls-and-dash.md#dash-standard-thumbnail-tiles
for each storyboard in storyboards
interval = ValidInt(storyboard.interval)
if interval = 0
LogWarn("Invalid storyboard interval:", storyboard.interval)
LogInfo("Invalid storyboard interval:", storyboard.interval)
continue for
end if
templateUrl = storyboard.templateUrl
if templateUrl.Instr("$M") = -1
LogWarn("Invalid storyboard url: url does not contain $M:", templateUrl)
LogInfo("Invalid storyboard url: url does not contain $M:", templateUrl)
continue for
end if
@@ -267,8 +268,13 @@ class DashManifest
end if
id += 1
storyboardsAdded = true
end for
if storyboards.Count() > 0 and not storyboardsAdded
LogWarn("No valid storyboards found")
end if
xml.End()
end if
xml.End()