From e79db73cd94e92778c174a86c7c7d70ef41e71be Mon Sep 17 00:00:00 2001 From: sudacode Date: Sat, 19 Sep 2026 00:06:25 -0700 Subject: [PATCH] docs(stats): document separate YouTube media kind - Mark the YouTube library separation as an added feature - Document the v24 schema and channel metadata --- changes/youtube-library-kind.md | 2 +- docs-site/immersion-tracking.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/changes/youtube-library-kind.md b/changes/youtube-library-kind.md index 33fee1a7..2b558662 100644 --- a/changes/youtube-library-kind.md +++ b/changes/youtube-library-kind.md @@ -1,4 +1,4 @@ -type: fixed +type: added area: stats - Store YouTube channels as a separate media kind and migrate existing channel entries without changing viewing history or manual video assignments, including channels created after temporarily returning to an older build. diff --git a/docs-site/immersion-tracking.md b/docs-site/immersion-tracking.md index 4eea7bf7..dfc86bce 100644 --- a/docs-site/immersion-tracking.md +++ b/docs-site/immersion-tracking.md @@ -327,14 +327,14 @@ LIMIT ?; - Large-table reads are index-backed for `sample_ms`, session time windows, frequency-ranked words/kanji, and cover-art identity lookups. - Workload-dependent tuning knobs remain at defaults unless you change them: `cache_size`, `mmap_size`, `temp_store`, `auto_vacuum`. -### Schema (v23) +### Schema (v24) The exact schema version lives in `SCHEMA_VERSION` (`src/core/services/immersion-tracker/types.ts`) and is recorded in the `imm_schema_version` table. Core tables: - `imm_videos` - video key/title/source metadata -- `imm_anime` - anime/series metadata referenced by videos and lifetime tables +- `imm_anime` - anime/series or YouTube channel metadata (`media_kind`) referenced by videos and lifetime tables - `imm_anime_title_aliases` - alternate titles that resolve to the same anime row - `imm_anime_merge_recommendations` - candidate duplicate-series merges surfaced in the dashboard - `imm_sessions` - session UUID, video reference, timing/status, final denormalized totals