There’s a couple of things I’d like to say about your setup, but first the big question:
Can I call the DownloadedEpisodesScan with a root folder?
No, the commands operates on individual ‘job’ folders/files, basically a single ‘download’ with related files, such as subs. or a season pack.
But you should be able to do that easily in your script: Just iterate over your destination folder in a non-recursive fashion, you can safely kick of the API call for each one individually since you said those files/folders have completed transferred.
But you could also just keep the Drone Factory for now since you don’t have a lot of time and the ‘temp folder’ guarantee should make it work properly. It’s not gonna disappear suddenly, v3 will likely be a manual update, it’s not like we’re going to push such a breaking change automatically.
A couple of other things:
How do you get it to filter between duplicates/upgrades? Depending on your irssi rules, you could be seeing downloads for multiple qualities and release groups. And Sonarr could be rejecting imports in some cases.
Sonarr supports a ReleasePush api and people have already written scripts to feed the irssi notifications into it, any release pushed that way gets evaluated by Sonarr’s decision logic and either downloaded or rejected.
I would’ve suggested this, coz then you could push the shows you watch via Sonarr (irssi -> Sonarr Push API -> Download Client -> uftp -> Sonarr Remote Path Mapping -> Sonarr Import), and everything else directly from irssi to you download client in a different category on your seedbox. But since you mentioned you don’t have much time, that’s probably not an option.
Still, maybe something to consider in the future.