unarr/internal/agent
Deivid Soto a710bc1626
Some checks failed
CI / Test (push) Failing after 6m18s
CI / Build (push) Successful in 1m32s
CI / Build-1 (push) Successful in 1m55s
CI / Build-2 (push) Successful in 1m33s
CI / Build-3 (push) Successful in 1m32s
CI / Build-4 (push) Successful in 1m35s
CI / Build-5 (push) Successful in 1m33s
CI / Lint (push) Failing after 2m50s
CI / Coverage (push) Successful in 2m58s
CI / Vet (push) Successful in 2m7s
feat(library): detección de intro/créditos post-scan (skip segments)
Tras cada scan, localiza la intro (OP) y los créditos (ED) comparando
fingerprints chromaprint entre episodios de la misma temporada —
reimplementación limpia del enfoque de Intro Skipper: índice invertido
de uint32, alineamiento por shifts, Hamming ≤6/32, región contigua más
larga (15-120s intro / 15-450s créditos). Películas: inicio de créditos
por rachas de blackframe (solo keyframes, -skip_frame nokey) que llegan
al final del fichero.

- fpcalc se auto-descarga de las releases estáticas de acoustid
  (linux/macos/windows, ~2MB) con el mismo patrón que ffmpeg/ffprobe.
- Resultados cacheados como sidecar .skipseg.json (mtime + versión de
  algoritmo); solo los ficheros nuevos trabajan.
- Submit a /api/internal/agent/skip-segments DESPUÉS del library-sync,
  en dos fases (episodios primero, películas después) para que la
  fase rápida no espere a los blackframe lentos sobre NAS.
- Agrupación por (dir + título-pre-SxxEyy + season): los títulos
  parseados arrastran nombre de episodio y tags de release.
- Gotcha cazado en vivo: fpcalc -length sale sin drenar el pipe; hay
  que cerrar nuestro read-end o ffmpeg queda bloqueado para siempre.
- config: library.skip_detect (default true, backfill) y scan_interval
  default 24h → 1h (estilo Plex).
2026-06-12 19:46:07 +02:00
..
active_tasks.go feat(agent): auto-resume interrupted downloads after a daemon restart 2026-05-31 22:44:05 +02:00
active_tasks_test.go feat(agent): auto-resume interrupted downloads after a daemon restart 2026-05-31 22:44:05 +02:00
client.go feat(library): detección de intro/créditos post-scan (skip segments) 2026-06-12 19:46:07 +02:00
client_test.go feat(agent): add mirror failover, agent client refactor, status 401 detection 2026-05-15 16:26:43 +02:00
daemon.go feat(agent): el auto-update difiere hasta que no haya stream activo 2026-06-12 09:46:23 +02:00
disk.go feat(cli): add login command and refactor shared helpers 2026-04-01 12:20:51 +02:00
disk_test.go test(coverage): raise engine+agent coverage above 50% 2026-05-12 11:21:59 +02:00
disk_unix.go feat: initial commit — unarr CLI 2026-03-28 11:29:42 +01:00
disk_windows.go feat: initial commit — unarr CLI 2026-03-28 11:29:42 +01:00
docker.go feat(agent): report isDocker so the web shows a docker pull command 2026-06-03 18:09:29 +02:00
downlink_test.go feat(agent): hybrid SSE downlink with long-poll fallback 2026-06-01 17:31:42 +02:00
events_client.go feat(agent): hybrid SSE downlink with long-poll fallback 2026-06-01 17:31:42 +02:00
events_client_test.go feat(agent): hybrid SSE downlink with long-poll fallback 2026-06-01 17:31:42 +02:00
mirror_client.go feat(subtitles): subtitle-fetch jobs vía sync + auto-fetch opcional en scan 2026-06-10 14:48:35 +02:00
mirror_pool.go feat(agent): add mirror failover, agent client refactor, status 401 detection 2026-05-15 16:26:43 +02:00
mirror_transport.go feat(agent): give the public API client mirror failover 2026-06-01 15:53:00 +02:00
mirror_transport_test.go feat(agent): give the public API client mirror failover 2026-06-01 15:53:00 +02:00
process_unix.go feat: add clean command to remove temp files, logs, and cached data 2026-03-29 11:04:51 +02:00
process_unix_test.go test(coverage): raise engine+agent coverage above 50% 2026-05-12 11:21:59 +02:00
process_windows.go fix(build): unused variable in Windows process check 2026-03-30 13:11:55 +02:00
state.go refactor(sentry): decouple agent import via string-match, rename predicate 2026-05-27 17:03:26 +02:00
state_test.go fix(sentry): skip "daemon not running" stop/reload errors 2026-05-27 16:50:16 +02:00
sync.go feat(agent): el auto-update difiere hasta que no haya stream activo 2026-06-12 09:46:23 +02:00
sync_test.go test: add comprehensive test suite for engine, agent and cmd packages 2026-04-08 23:36:00 +02:00
taskstate.go feat(sync): replace WS+DO transport with unified HTTP sync 2026-04-08 18:50:59 +02:00
taskstate_test.go test(coverage): raise engine+agent coverage above 50% 2026-05-12 11:21:59 +02:00
types.go feat(library): detección de intro/créditos post-scan (skip segments) 2026-06-12 19:46:07 +02:00