From fc89ef7c5851cf3943c88b591b70bb9dc2836eab Mon Sep 17 00:00:00 2001 From: 4gray Date: Wed, 12 Aug 2026 01:30:17 +0200 Subject: [PATCH] docs(xtream): restore the docblock currentSourceRow lost to an insertion routeCategoryLanguage was added between currentSourceRow's docblock and its signature, so the paragraph describing "the row standing for the source the route is already playing" ended up introducing a function that returns a language string. Moved below; no behavior change. Co-Authored-By: Claude Fable 5 --- .../vod-multi-source-current-row.ts | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/libs/portal/xtream/feature/src/lib/vod-details/vod-multi-source-current-row.ts b/libs/portal/xtream/feature/src/lib/vod-details/vod-multi-source-current-row.ts index fe3184d8e..aaa640d15 100644 --- a/libs/portal/xtream/feature/src/lib/vod-details/vod-multi-source-current-row.ts +++ b/libs/portal/xtream/feature/src/lib/vod-details/vod-multi-source-current-row.ts @@ -21,21 +21,6 @@ import type { VodMultiSourceMovie } from './vod-multi-source-identity'; * not fire on a route-to-alternative switch, which is the commonest one there * is. */ -/** - * The route row's category-derived language: what the one category the route - * arrived through states, if that is a language. Alternatives read this off - * every category the DB knows; the route only knows the visible one. Shared - * with the host's refresh path so the two cannot drift — the category loads - * late on cold/direct routes and arrives without changing the movie key. - */ -export function routeCategoryLanguage( - movie: VodMultiSourceMovie -): string | null { - return unambiguousCategoryLanguage( - movie.categoryName ? [movie.categoryName] : null - ); -} - export function currentSourceRow( movie: VodMultiSourceMovie ): VodSourceCandidate { @@ -53,3 +38,18 @@ export function currentSourceRow( return movie.metadata ? applyApiMetadata(row, movie.metadata) : row; } + +/** + * The route row's category-derived language: what the one category the route + * arrived through states, if that is a language. Alternatives read this off + * every category the DB knows; the route only knows the visible one. Shared + * with the host's refresh path so the two cannot drift — the category loads + * late on cold/direct routes and arrives without changing the movie key. + */ +export function routeCategoryLanguage( + movie: VodMultiSourceMovie +): string | null { + return unambiguousCategoryLanguage( + movie.categoryName ? [movie.categoryName] : null + ); +}