mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-11-22 16:46:10 -08:00
feat(stats): group library seasons, movies and OVAs into franchise cards
The stats library now lists each anime once. Grouping is a view over imm_anime rows computed from a cached AniList relation graph; no rows are merged and identity keys are unchanged. - Schema 27: imm_anilist_media + imm_anilist_relations cache every AniList entry reached from the library and all its anime edges. A background refresher walks from owned AniList ids (depth 6, 250 fetches per run, 7-day staleness) through the shared AniList rate limiter; a failed fetch leaves cached rows untouched. - FRANCHISE_RELATION_TYPES (PREQUEL, SEQUEL, PARENT, SIDE_STORY, SUMMARY, COMPILATION, CONTAINS) joins entries; an entry that names the other only through an excluded type (a spin-off's original) vetoes the join. - GET /api/stats/anime/groups returns cards with summed totals, the root entry's title, and parts in release order. Entries without cached relations stay single cards identical to before. - imm_anime.group_override (NULL = AniList, 0 = on its own, positive = join the franchise containing that AniList id) with PUT /api/stats/anime/:id/group and Move to Another Anime / Show On Its Own / Put Back Where AniList Has It on the title page. - SSH sync merges the override last-writer-wins on group_override_updated_at and skips the rebuildable relation cache.
This commit is contained in:
41 files changed
+2230
-109
No files matched your search
@@ -50,11 +50,15 @@ Deleting a session or session group refreshes the Overview totals, charts, calen
|
||||
|
||||
Your shows as cover-art cards with search, sorting, per-series progress, and an episode list linking to mined cards. The **All Titles** / **Anime** / **Live Action** / **YouTube** selector filters the grid. YouTube videos are grouped by channel.
|
||||
|
||||
Seasons get separate cards when a season number is detected. Live-action titles that AniList cannot match are looked up on [TMDB](/configuration#tmdb). If a title gets no match, open it and use **Link to TMDB** to pick one by hand.
|
||||
Seasons, movies, and OVAs of one anime share a card. SubMiner follows AniList's sequel, prequel, parent, side-story, summary, and compilation links, including through entries you have not watched, so two films can meet at a TV series you never played. Spin-offs and alternative versions keep their own cards. A shared card is named after the anime's first TV series, shows the cover of the earliest part you have, and opens to a list of its parts in release order. Relations come from AniList in the background and refresh weekly, so a newly linked show can take a minute to join its card.
|
||||
|
||||
If a part lands on the wrong card, open it and choose **Move to Another Anime…** (the target must be linked to AniList) or **Show On Its Own**. **Put Back Where AniList Has It** undoes either. This only changes how the library is listed; duplicate entries for the same season still need a merge.
|
||||
|
||||
Live-action titles that AniList cannot match are looked up on [TMDB](/configuration#tmdb). If a title gets no match, open it and use **Link to TMDB** to pick one by hand.
|
||||
|
||||
The same show can end up on several cards when release names disagree. To fix that:
|
||||
|
||||
- Merge: click **Select**, tick the duplicate cards, choose **Merge Selected**, and pick the entry to keep. Sessions, cards, and watch time move over, and future episodes with those names join the kept entry.
|
||||
- Merge: click **Select** (the grid then lists every entry on its own), tick the duplicate cards, choose **Merge Selected**, and pick the entry to keep. Sessions, cards, and watch time move over, and future episodes with those names join the kept entry.
|
||||
- Move one episode: hover its row in the episode list and click **→** to assign it to another entry. SubMiner remembers the correction.
|
||||
- Suggested merges appear as **Possible duplicate** above the grid. Choose **Review merge** or **Not duplicates**.
|
||||
|
||||
|
||||
@@ -145,7 +145,7 @@ subminer sync macbook --remote-cmd ~/Apps/SubMiner.AppImage # SubMiner in a cu
|
||||
subminer sync --ui # open the sync window
|
||||
```
|
||||
|
||||
Syncing only adds data. It never overwrites or double-counts, so you can run it as often as you like. `--push` and `--pull` do not delete anything on the receiving side.
|
||||
Syncing only adds data. It never overwrites or double-counts, so you can run it as often as you like. The one setting it carries is a library title's anime card choice (**Move to Another Anime…**), where the most recent change wins. `--push` and `--pull` do not delete anything on the receiving side.
|
||||
|
||||
Before a command-line sync, close SubMiner on both machines and stop the stats server with `subminer stats -s`, or pass `--force`. The sync window does not need this. It syncs while SubMiner and playback are running, and skips the session in progress until it finishes.
|
||||
|
||||
|
||||
Reference in new issue
Block a user