Honestly, I don't know the first thing about scripting, but someone did make a script that would read an RSS feed and send the feed to download here:
https://github.com/jdlbot/jdlbot
I'm not sure if that helps or not.
There's also another forum here were people submit their scripts:
https://board.jdownloader.org/showthread.php?t=21026