Sonarr version (exact version): 2.0.0.4409 Mono version (if Sonarr is not running on Windows): 4.6.2.7/08fd525 OS: CentOS 7 (GNU/Linux) Kernel Version: Linux 3.10.0-327.el7.x86_64 ((Debug logs)): N/A Description of issue: I’d like to use Completed Download Handling with a remote client that does not use a mounted directory. The issue is, my transfer speeds through a mounted directory are only on the order of 1-2 Mbit/s. However, if I use something like lftp through sftp protocol, I’m able to achieve 100 Mbit/s transfer speed. I know that I could get it to work though using the remote directory mapping with sshfs, but that’s just way to slow. Is there any suggested method to use a remote download client with Completed Download Handling?
Possible Solutions:
Use Drone Factory with lftp cronjob to keep downloads directory synced.
a. How does Drone Factory deal with the fact that it could be scanning partially downloaded files?
Use Completed Download Handling with lftp cronjob to keep downloads directory synced with a faked out "remote directory mapping"
a. Same thing, what would happen if Completed Download Handling ran into a file that was partially synced?
Does anyone know of any other solutions? I had thought of an LFTP-FS sort of program, but it’s a bit out of scope of the time I have to spend on this.
Either option would try to import it if it’s a video file, either syncing to another folder and moving it to the folder after it completes or using another extension so Sonarr doesn’t try to process it should work though.
You should use Completed Download Handling over Drone Factory in most cases, except that would have two issues:
Season packs would need to be entirely copied over before Sonarr starts processing them to avoid importing one and thinking that’s it and marking is as imported
Sonarr will try to copy/hard link it if it’s still seeding in your torrent client.
So if I understand correctly, Sonarr isn’t going to freak out if a file is reported from the download client as completed, but it doesn’t show up in its expected location for another 20 minutes?
Also, that’s a brilliant idea. I don’t think it should be too hard to generate a list of files that were synced down and copy/hardlink them into the “local” mapping of the remote directory.
It’ll complain, in the logs and Activity: Queue that it’s missing, but it won’t do anything drastic like treat it as failed or look for another release.
Oh. That won’t work for me, I want Sonarr to properly track what has been downloaded and actually only show what is really missing in the missing queue.
If I use Drone Factory with this same approach, should I be okay in that regards?
I shouldn’t have used the word missing, it will show that there isn’t a file to import, but it will see that it’s still in the queue though. This is what you want.
No, that would actually mark is as missing for as long as it takes to download and get imported. It’ll go from downloading to gone from the queue (if CDH is disabled, which is should be) and the episode marked as missing from disk to imported at some point.
What does CDH do with things in the queue? Does it look for those files and import them when they become available? I guess I’m just a bit confused on what the state machine for CDH looks like. In the end, I intend to take advantage of the media management feature where it renames and hardlinks files into another directory.
I made a quick diagram to show what I’m trying to accomplish, just to try to make things clear while I have your attention on this thread, just to make sure we’re communicating properly. In case it’s not clear “Plex Library Directory” is the directory where all the TV shows are mapped to inside of Sonarr.
The queue feeds CDH. The queue is built from the download client queue/history and contains everything Sonarr is tracking (in the correct category and things Sonarr understands to be a TV show).
CDH checks which things are finished downloading and tries to import them, if there aren’t any files to import it makes a note and tries again later (next time it runs).
Oh this is great news! I’ll implement my system and will report back how it goes. Maybe leave my files so people can do the same thing in the future with more ease.
How often is this? I think I have mostly finished my script and I see all my files being copied to the proper directory. I hover over the status box and it will say something like
No files found are eligible for import in /Media/data/downloads/TV/How.Its.Made.S27E11.720p.HDTV.x264-DHD
But if I click on the manual import button, the correct shows up as the only possible file to import with nothing under rejections column.
Edit: I’m dumb. Forgot to chown the files I copied over to group sonarr. Looks like it’s working! I’ll probably clean up my code a little and add a couple more features and I’ll post it.