Sonarr version (exact version):
Mono version (if Sonarr is not running on Windows):
OS:
((Debug logs)) (posted to hastebin or similar):
Description of issue: trying to setup sonarr with my new dedibox. my dedibox downloads the files to itself. a script on it copies completed downloads to a sync folder. my local comp downloads the files to a local folder using lftp then deletes the copy in the sync folder on the seedbox. now i use remote mapping to tell sonarr that the download directory deluge tells it is actually the local directory with the files correct. now my question is how can i make sonarr move the files on the local comp instead of copying them. i don’t need the local copy to seed. or is this not possible. hardlinking doesn’t solve the problem as the drive new stuff comes to is different than the library drive
What you need is a post processing script that cleans the files after successful import. I have vps seedbox and I bring the remote files with syncthing. I use the PP script sonarr facility to clean the remaining files.
perhaps how do you setup these scripts? my situation is complicated a bit by the fact i don’t like cygwin and i need a windows program so the comp that uses lftp downloads it to a network share on a windows comp. that windows comp is where sonarr is. so i guess i would need a way to run a pp script on windows and i have never done that before. but honestly i don’t even see an option in sonarr so i’m probably missing something. does sonarr have a way to pass info to a powershell script
Well sonarr can run any type of script php, Python, cmd etc, I personally use bash because I am in a Linux server.
The sonarr script facility passes to the script around 20 environment variables that can be used in the scripts. For sure powershell can be used, but I have zero knowledge there, I am all bash.
The list of variables is here
thanks that is very important info and i can already see some things i’ll probably do but it seems that when it imports it only tells you the path to where it put it. i would need the path it came from but that only seems to be given on completion of the download. if i delete it then it can’t be imported right
The variable ${sonarr_episodefile_sourcefolder} can be used to find where sonarr used to import the file.
So for example in bash I have
#!/bin/bash
rm -rf ${sonarr_episodefile_sourcefolder}
A real example would be in my case
sonarr_episodefile_sourcefolder=/mnt/nfs/Sonarr/torrent/tv-sonarr/The.Americans.2013.S04E13.720p.HDTV.x264-AVS
the final destination path after import is:
sonarr_episodefile_path=/mnt/nfs/Sonarr/tv/The Americans (2013)/Season 4/The Americans (2013) - S04E13 - HDTV-720p - AVS.mkv
Also i have to warn you…be very careful using this with season packs. This will most likely import the first episode then delete the whole folder before the rest can be imported.
i ended up using sshfs to mount it on the loal linux comp and samba that out to the comp running sonarr so i don’t need to worry about this. a bit annoying i only get like 1MB/s transfer rates but it works allright
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.