fix(stats): keep same-title anime and YouTube records separate

- Scope title identity, aliases, AniList matching, and sync by media kind
- Migrate legacy schemas while preserving IDs, history, and assignments
This commit is contained in:
2026-09-19 00:40:54 -07:00
parent e79db73cd9
commit c961a84dce
10 changed files with 323 additions and 22 deletions
@@ -69,7 +69,9 @@ function findButton(container: Element, label: string): HTMLElement {
/** Library cards only expose aria-pressed while selection mode is on. */
function cardButtons(container: Element): HTMLButtonElement[] {
return [...container.querySelectorAll('.grid button[aria-pressed]')] as unknown as HTMLButtonElement[];
return [
...container.querySelectorAll('.grid button[aria-pressed]'),
] as unknown as HTMLButtonElement[];
}
function mergeButton(container: Element): HTMLButtonElement {