This can be done more affordably through Home Assistant using Hassarr.

https://github.com/TegridyTate/Hassarr