diff --git a/CHANGELOG.md b/CHANGELOG.md index bd1c946b..d8f9a8ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Missing video durations in channel pages, when using Playlet backend +- Captions on some videos (from TV broadcasts) displaying vertically instead of horizontally ## [0.46.0] - 2026-06-12 diff --git a/playlet-lib/src/components/Services/Innertube/PlayerEndpoint.bs b/playlet-lib/src/components/Services/Innertube/PlayerEndpoint.bs index dab4d087..68320e54 100644 --- a/playlet-lib/src/components/Services/Innertube/PlayerEndpoint.bs +++ b/playlet-lib/src/components/Services/Innertube/PlayerEndpoint.bs @@ -336,7 +336,15 @@ namespace Innertube ' vtt has "align:start position:0%" on auto-generated captions ' srt has large spacing between lines on auto-generated captions ' ttml has default styling, with smaller font than the default size - queryComponents["fmt"] = "ttml" + ' CEA-608 broadcast channels (CC1-CC4) encode their paint-on reveal as + ' per-segment timed spans; Roku's ttml renderer stacks each span on its own + ' line (vertical text). vtt expresses the same timing inline, so it wraps. + captionName = queryComponents["name"] + if captionName = "CC1" or captionName = "CC2" or captionName = "CC3" or captionName = "CC4" + queryComponents["fmt"] = "vtt" + else + queryComponents["fmt"] = "ttml" + end if baseUrl = UrlUtils.SetQueryParams(baseUrl, queryComponents) languageCode = track["languageCode"]