# Recovarr > Web UI for re-triggering Sonarr/Radarr imports on corrupted or missing media files. Recovarr queues file paths for `recovarr.sh`, streams live script output via Server-Sent Events (SSE), polls Sonarr/Radarr for import completion, and auto-unmonitors episodes/movies once the download lands. --- ## What it does Given a path to a corrupted or missing media file, Recovarr: 1. Identifies the media in Sonarr (TV) or Radarr (Movies) via the parse API 2. Checks the download queue for a pending import 3. Checks download history to see if the original torrent is still available 4. If available: deletes the file record and triggers an import scan 5. If not available: deletes the file record and triggers an automatic search 6. Polls every 30s until the import completes, then auto-unmonitors --- ## Requirements - Node.js 18+ - Bash 4+, curl, jq (for `recovarr.sh`) - No npm dependencies — pure Node.js built-ins only --- ## Install ```bash git clone https://git.opensourcesolarpunk.com/Circuit-Forge/recovarr cd recovarr ``` ### Config ```bash mkdir -p ~/.config/media-postprocessor cat > ~/.config/media-postprocessor/api-keys.conf <