goon/app/resolve
jtrzupek 817b50fbf8 fix(scenes): propagate playback duration to Scene + duration-consistent counts
Scene.duration_sec was NULL for ~74% of playable scenes (tube duration lives on
playback_source, never propagated to Scene), so the mobile min_duration_sec=60 filter
(Scene.duration_sec >= 60; NULL fails) silently hid them — surfaced as '119 in favorites,
14 after entering the performer' (Safira Yakkuza).

- resolver: _effective_duration() falls back to max live playback_source duration when the
  connector provides no scene-level duration (forward fix, used in create + update).
- scripts/backfill_scene_duration_from_playback.py: one-off idempotent backfill (recovered
  204,014 scenes).
- taxonomy_counts: scene_count now counts playable AND duration_sec >= 60, matching the
  always-60s-filtered scene lists, so favorites/performer/studio/tag badges agree with what
  the scene screen actually shows (Safira: 39 == 39).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-01 21:31:01 +02:00
..
__init__.py Initial commit 2026-05-20 10:10:22 +02:00
movie_match.py Initial commit 2026-05-20 10:10:22 +02:00
movie_resolver.py Initial commit 2026-05-20 10:10:22 +02:00
movie_score.py Initial commit 2026-05-20 10:10:22 +02:00
performer_resolver.py Initial commit 2026-05-20 10:10:22 +02:00
scene_match.py feat(ingest): SQL phash match, tag inference + backfill, clip-store skip, browse tubes, watchdog 2026-06-01 15:07:35 +02:00
scene_merge.py Initial commit 2026-05-20 10:10:22 +02:00
scene_resolver.py fix(scenes): propagate playback duration to Scene + duration-consistent counts 2026-06-01 21:31:01 +02:00
scene_score.py Mobile 0.1.9: OTA enable, WebView cookie-dismiss fix, porndoe connector 2026-05-22 11:20:57 +02:00
scoring.py Mobile 0.1.9: OTA enable, WebView cookie-dismiss fix, porndoe connector 2026-05-22 11:20:57 +02:00
studio_resolver.py Initial commit 2026-05-20 10:10:22 +02:00
studio_title_parser.py Initial commit 2026-05-20 10:10:22 +02:00
tag_resolver.py fix(scenes): use ON CONFLICT for tag slug upsert in enrich_tags_from_tube 2026-05-27 15:38:43 +02:00