https://kilnake.github.io/posts/direct-arr-script/
Scripted Media Setup - Ravi Kilnake