Update sabnzb with new path

Come up with a useful post-processing script? Share it here!
Post Reply
amelsfort
Newbie
Newbie
Posts: 4
Joined: January 12th, 2011, 3:44 am

Update sabnzb with new path

Post by amelsfort »

I have written a script which moves any completed downloads from my download-PC to my NAS. My NAS runs CouchPotato, which looks for movies, adds them to sab and moves them to the correct folder after completion.
No because of my custom script moving the files and sab still mentioning the old path, CP is unable to find the completed movies in the folder specified by sab.

Is there a way for my custom script to update the location of a download in sab? Thay way sab would tell CP the correct path of the download.

PS. The reason I have a custom script moving the file is that I want my PC to do the downloading, par checking and unpacking without using the NAS. This is much faster. Besides this, I wanted to prevent CP from moving any incomplete files during the extraction to the NAS.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Update sabnzb with new path

Post by shypike »

Isn't CP already equipped to move the files to their final destination?
amelsfort
Newbie
Newbie
Posts: 4
Joined: January 12th, 2011, 3:44 am

Re: Update sabnzb with new path

Post by amelsfort »

CP can indeed move files from a downloadfolder to a different one.

But as I mentioned in my first post, the problem is that I have Sabnzbd running on a different machine because of the speed (especially when using PAR/unrar).
Because I'm also using torrents directly on my NAS, I can't have CP (also running on my NAS) check my server for downloads. Therefore, after the download has finished, I have a postprocessing-script moving the files to my NAS. Here CP picks it up and moves it to the correct folder.

Because of the two systems and the script moving the file, it would be nice to have Sabnzbd to show the correct folder.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Update sabnzb with new path

Post by shypike »

It's not possible to implement this in a practical way.
There is no communication from the script to SABnzbd,
except for the exit code and standard output.
Current scripts can now indiscriminately write to standard output.
Interpreting that output as a new path would cause problems.
Post Reply