Plan duplicate handling and smart rotation
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -62,6 +62,17 @@ The checks on Paul's account reported 98,441 films, 34,103 series and 1,053,303
|
||||
|
||||
Measured on 1 November 2026: the full import finished at 132,545 titles (98,441 films, 34,104 series) in a 33.9 MB database, about 261 bytes per title. The second half, 67,145 titles, took 1,588 seconds with a slowest page of 57 seconds. Page size never dropped below 200, so the longer timeout was enough; a 15-second limit would have failed on those pages.
|
||||
|
||||
## Duplicates and smart selection
|
||||
|
||||
Paul's point, 1 November 2026: the library holds several copies of many titles (remux, 4K, 1080p and so on), and a channel that matches 15,000 films shouldn't schedule all of them. How many duplicates exist isn't known yet.
|
||||
|
||||
- **One title, many versions:** group versions by external ID first, then by normalised title and year. Uncertain matches stay separate and go to review, so different films aren't merged by mistake. Remakes share a title but not a year or ID.
|
||||
- **Choosing a version:** pick the best copy this box can play directly, checked only when it is going on a channel. Keep the others as fallbacks if a source fails. A viewer preference for quality or file size can come later.
|
||||
- **Pool and schedule:** matching builds a channel's pool, which can be any size. The schedule draws a short rolling window from it, such as the next few days, and rotates through the pool over time.
|
||||
- **Selection:** weigh fit, era and variety, avoid recent repeats, and spread series and franchises out. Rules scale to pool size, since three films can't follow the same rules as 15,000.
|
||||
- **Staying on the clock:** selection must be repeatable from a saved seed and the pool, so restarting the app rejoins the same programme. A window already published doesn't change when the library does.
|
||||
- **Across channels:** a title can sit in several pools, but the same film shouldn't air on two channels at once unless that's intended.
|
||||
|
||||
## What the metadata supports
|
||||
|
||||
Early samples show genres and external IDs on nearly every film and series (3,998 and 3,997 of the first 4,000 imported), so stable-ID identification and genre matching look reliable. Studios and cast are usable but not complete, and episodes carry little of their own, so they should inherit from their series. Coverage across all 132,545 titles: year 132,111, external IDs 131,287, date 129,182, genres 129,119, rating 86,863, tags 58,224. So about a third of titles have no rating, which matters for profiles and mature channels: an unrated title can't be treated as safe.
|
||||
|
||||
@@ -104,6 +104,8 @@ For that last row, I'd keep the loop as the default and add an optional local-ti
|
||||
| --- | --- |
|
||||
| Original channel set: 101, 102, 103 | Done |
|
||||
| Controlled refresh, previewing additions and removals without shifting what's playing | P1 |
|
||||
| Duplicate grouping and best-version choice, added 1 November 2026 | P1, before preset matching |
|
||||
| Smart rotation from large channel pools, added 1 November 2026 | P3 |
|
||||
| Reusable and custom channel creation with ticks | P2 and channel list |
|
||||
| Grid guide with real Now and Next | After channel list |
|
||||
| Bottom-left bug, off by default | P4 |
|
||||
|
||||
Reference in New Issue
Block a user