Skip to content

Comments

feat(health): implement safe metadata lifecycle and automatic path recovery#72

Merged
drondeseries merged 3 commits intomainfrom
feat/health-system-updates
Feb 9, 2026
Merged

feat(health): implement safe metadata lifecycle and automatic path recovery#72
drondeseries merged 3 commits intomainfrom
feat/health-system-updates

Conversation

@drondeseries
Copy link
Owner

This PR enhances the health system with safety measures and automatic recovery:

  • Metadata Safety: Removed logic that automatically deleted .meta files when physical library files were missing. This is a critical safety measure to prevent mass data loss during mount glitches or external file moves.
  • Automatic Path Recovery: The Library Sync worker now automatically 'recovers' records with broken or missing library_path by checking the expected location on the mount (MountRoot + VirtualPath).
  • Smart Rename Webhook: Updated the Rename webhook handler to attempt re-linking existing health records by filename when Sonarr/Radarr moves files, preserving health history and preventing duplicates.
  • Database Layer: Added RelinkFileByFilename method to support efficient, atomic path updates.

@drondeseries drondeseries merged commit 7eab9a6 into main Feb 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant