updates for debug scan

This commit is contained in:
2025-09-08 10:21:38 -04:00
parent 5537b3b158
commit 5cc237461c
3 changed files with 117 additions and 5 deletions
+33 -4
View File
@@ -77,11 +77,13 @@ POST /webhook/sonarr Sonarr events
POST /webhook/radarr Radarr events
POST /manual/scan Manual scan (TV + Movies)
POST /manual/scan?scan_type=both Manual scan (TV + Movies) [DEFAULT]
POST /manual/scan/tv Manual scan TV only
POST /manual/scan?scan_type=tv Manual scan TV only
POST /manual/scan/movies Manual scan Movies only
POST /manual/scan?scan_type=movies Manual scan Movies only
POST /manual/scan?path=/media/movies Manual scan specific path
GET /health Health check
@@ -89,6 +91,8 @@ GET /stats Database stats
GET /batch/status Current batch queue
GET /debug/movie/{imdb_id} Debug movie import date detection
📖 Example Workflow
You add The Blacklist in Sonarr.
@@ -100,7 +104,32 @@ NFOGuard updates the .nfo and mtime, but keeps the original import date.
Emby/Jellyfin/Plex see the file as unchanged in chronology.
Result: no more old shows showing up in Recently Added.
Result: no more "old shows" showing up in "Recently Added."
🔍 Logging & Debugging
# Enable verbose logging
DEBUG=true
# Check container logs
docker logs sonarr-nfo-cache
# Debug specific movie import detection
curl http://localhost:8080/debug/movie/tt1674782
# Manual scan with verbose output
curl -X POST "http://localhost:8080/manual/scan?scan_type=movies"
# File logs (inside container)
/app/data/logs/nfoguard.log
⚙️ Environment Variables (v0.2.1+)
Variable Default Description
RADARR_ROOT_FOLDERS (required) What Radarr sees: /mnt/unionfs/Media/Movies/movies
SONARR_ROOT_FOLDERS (required) What Sonarr sees: /mnt/unionfs/Media/TV/tv
DOWNLOAD_PATH_INDICATORS (see example) Paths that indicate downloads vs existing files
MOVIE_PRIORITY import_then_digital Strategy: import_then_digital or digital_then_import
MOVIE_POLL_MODE always When to query APIs: always, if_missing, never
MOVIE_DATE_UPDATE_MODE backfill_only Update behavior: backfill_only or overwrite
📜 License
MIT License do what you want, just dont blame us if your timestamps go timey-wimey.