2025-12-08 07:56:46 -05:00
2025-12-08 07:56:46 -05:00
2025-12-08 07:56:46 -05:00
2025-12-08 07:56:46 -05:00
2025-12-08 07:56:46 -05:00
2025-12-07 15:31:14 -05:00
2025-12-07 15:31:14 -05:00
2025-12-08 07:56:46 -05:00
2025-12-08 07:56:46 -05:00
2025-12-07 15:31:14 -05:00
2025-12-08 07:56:46 -05:00
2025-12-07 15:31:14 -05:00
2025-12-08 07:56:46 -05:00

mediawatcher

mediawatcher is a small Go daemon that:

  1. Watches one or more download directories
  2. Waits for files to finish writing
  3. Classifies them as TV / Movie / Misc / Unknown
  4. Moves them into a structured incoming tree
  5. Optionally rsyncs them to remote media servers
  6. 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).

Description
pushes media files to server
Readme 36 KiB
Languages
Go 97.7%
Shell 2.3%