728 B
728 B
mediawatcher
mediawatcher is a small Go daemon that:
- Watches one or more download directories
- Waits for files to finish writing
- Classifies them as TV / Movie / Misc / Unknown
- Moves them into a structured incoming tree
- Optionally rsyncs them to remote media servers
- Optionally notifies Sonarr/Radarr (or any HTTP endpoint) to rescan
Build
cd mediawatcher
go build ./cmd/mediawatcher
Config
Copy the example config and edit:
cp mediawatcher.example.yml mediawatcher.yml
Edit watch.dirs, structure.*, sync.targets, and notifier.endpoints.
Run
./mediawatcher -config=mediawatcher.yml
Or as a systemd service (see systemd/mediawatcher.service).