If that happens we could handle concurrency and asynchronous transfers and even show the transfer progress on the Activity->Queue UI. Sonarr should be made aware of this asynchronous process. This concept is to be the generalization of 'Remote Path Mappings' allowing you to specify how the files are supposed to be transferred from a remote system (seedbox) to your local series folder.īe it sshfs mounts, ftp, http, btsync, rsync. But is intended to be yet again an Automation approach to the age old problem of how to get something from A to B. So, how to really deal with remote syncs properly? Introduce Transfer Providers, atm nothing more than a concept in our minds. Switching from a periodic to an event-based mechanism forces ppl with these edge-cases to deal with this issue. In most 'edge-cases' the best solution is to write a custom external script that performs the btsync operation and then calls this API.įrom my point of view that's still a workaround, but it's infinitely better than the unpredictable behavior of the Drone Factory.Īnything dumped in the Drone Factory MUST be dumped there 'atomically', meaning you have to create a directory somewhere, sync to there, then in a single operation move the directory to the Drone Factory. Before CDH got implemented this API Command was the only way to make Nzbget play nice with Sonarr. In that sense it's similar to the sabToSickbeard.py script, but can tie straight into CDH. With all this rich information, Sonarr can properly perform the import. In fact, nzbToMedia actually uses that API to tell Sonarr a particular download has finished, where the (transcoded) folder can be found and which downloadId we're talking about. It's basically the non-periodic DroneFactory Scan, but enhanced to support CDH-related parameters. Since age and day Sonarr has supported a DownloadedEpisodesScan Command. With only the btsync/remote scenario still failing on us this is an obvious win. Either knows we're dealing with a torrent client and assumes it's being seeded, or knows we finished seeding and can be moved/deleted.Knows which grab is related to a specific download via the Download ID (nzoid for sab, guid for nzbget, infohash for torrents).Doesn't know you're transcoding, but knows your still running a pp-script, thus waits.Knows whether you have a custom pp-script in sabnzbd and waits for it to finish.Doesn't need to handle a special folder prefix.This is a huge advantage, lets go over our list again: I hope you see a pattern here, "Doesn't know" is killing in the world of Automation.īack in Mid 2014 we introduced Completed Download Handling, which was basically the next logical evolution of Failed Download Handling.įailed Download Handling periodically polls your Download client API to see if one of the downloads were reported as Failed, and search for an alternative release to download.Ĭompleted Download Handling does the same, polling the API, but checks whether a download is finished and ready for import. Making it appear as if Sonarr deletes the rest. Season Packs exacerbate all the above, since Sonarr may run the import before all episodes files are present.Doesn't know that you're using btsync from your remote seedbox, and end up importing partial files.Can end up deleting seeding files for torrents.Doesn't know which download the files are related to, so can't reliably use the metadata from the grab.Doesn't know that you're actually transcoding the file via a sabnzbd pp-script.Doesn't know whether a post-processing script is still running in Sabnzbd/Nzbget.Sonarr may import partial files from Nzbget.Needs a special folder prefix (UNPACK_) to see when Sabnzbd is unpacking, otherwise Sonarr may import partial files.Basically your average cronjob.īut it has quite a few downsides, lets sum some up: The Drone Factory is Sonarr's name for "Watch this folder every minute to see if there are new files to import". I hope to do the same here, albeit with a slightly longer speech (practically an essay). Fortunately after a 'short' speech, they usually agree. And usually the first response ppl have is 'wtf? Noooo!'. Explain why it's bad and what to do about it.Īlso, we plan to remove the Drone Factory entirely in a future major release (v3). The truth is a bit more nuanced, but close enough.Ī significant number of support requests/questions are related to issues with the Drone Factory, so I decided to post something about it. Those that frequent our IRC channel, may have heard me say that the Drone Factory is the source of all evil. TL DR: The Drone Factory isn't reliable and can cause partial imports, Don't Use It!.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |