refactor(video): uniformiser classification et routage par section
CI / build-and-test (push) Successful in 14m9s
CI / build-and-test (push) Successful in 14m9s
Source unique de classification (video-kind.ts) + politique de section centralisee (section-policy.ts). Les composants ne portent plus de seuils ni de regles de type maison. - section-policy.ts: sectionAccepts / routeForVideo / shortsFeedAccepts / isPlayable + classifyOnce (enrichissement _kind a l'ingestion) - watch-short: separe classification (shortsFeedAccepts) et jouabilite (isPlayable: allowEmbed DM, live/channel Twitch, Rumble 404); supprime le seuil Rumble 90 s et l'import YOUTUBE_SHORT_MAX_SECONDS du composant - home: filtre sectionAccepts(...,'home') (plus de shorts dans le trending), routeForVideo, pagination bouclee (min 20, max 5 iterations) - themes: _kind pre-calcule une fois, sectionAccepts, capacites live lues depuis le registre providers (fin de LIVE_PROVIDERS codes en dur) - video-kind: helpers isNativeVerticalProvider / hasKnownDuration - routes: alias /shorts/:id et /live/:id pour routeForVideo - tests: section-policy.spec.ts + video-kind.spec.ts etendus; npm run test:section
This commit is contained in:
@@ -23,6 +23,17 @@ export const APP_ROUTES: Routes = [
|
||||
loadComponent: () => import('./components/shorts/watch-short.component').then(m => m.WatchShortComponent),
|
||||
title: 'NewTube - Shorts'
|
||||
},
|
||||
// Alias de deep-link produits par `routeForVideo` (mêmes pages Watch).
|
||||
{
|
||||
path: 'shorts/:id',
|
||||
loadComponent: () => import('./components/watch/watch.component').then(m => m.WatchComponent),
|
||||
title: 'NewTube - Short'
|
||||
},
|
||||
{
|
||||
path: 'live/:id',
|
||||
loadComponent: () => import('./components/watch/watch.component').then(m => m.WatchComponent),
|
||||
title: 'NewTube - Live'
|
||||
},
|
||||
{
|
||||
path: 'channel/:provider/:externalId',
|
||||
loadComponent: () => import('./components/channel/channel-page.component').then(m => m.ChannelPageComponent),
|
||||
|
||||
Reference in New Issue
Block a user