User(s) browsing this thread: 1 Guest(s)
nzgbet change nzb- and download directory
|
|
12-14-2011, 11:57 AM
|
|||
|
|||
|
nzgbet change nzb- and download directory
For several reasons I want to split my downloads in 2 download directories.
My solution exists of switching between 2 configurations nzbget.conf1 and nzbget.conf2. nzbget.conf1 is the default. In nzbget.conf2 I changed de nzb and the download directory. The first configuration is already active during the boot of my PCH. How can I activate the second configuration and will this work? |
|||
|
12-14-2011, 12:13 PM
(This post was last modified: 12-14-2011 12:15 PM by Cherek.)
|
|||
|
|||
|
RE: nzgbet change nzb- and download directory
I doubt that's possible.
I'd give you more of a chance if you would mess around with categories: http://www.networkedmediatank.com/showth...?tid=35175 PCH-A100 (FW 01-17-100317-15-POP-402-000) (00-17-091216-15-POP-402 NMT Apps) Philips 28PW9611/01 PAL SD, connected with Composite Old skool
|
|||
|
12-27-2011, 06:31 PM
|
|||
|
|||
|
RE: nzgbet change nzb- and download directory
Thanks Cherek for the tip.
I have the solution described below: I created an extra script (nzb.sh) who looks for new nzb-files on my NAS. Nzb-file(s) will be added to the queue of the nzbget-deamon and download in a subdirectory of the common download directory specified by a category “.gezin” After the download is finished the download will be moved to the NAS. All my changes are: The sharename on my NAS is called: /gezin 1) Make directory on PCH: mkdir /gezin 2) Extra lines in /share/start-apps.sh # Create a mount point on disk mount -t cifs -o username=guest ,password=xxxx //ip-adres-nas/gezin /gezin # Start nzb (sleep 60; /share/rob/nzb.sh > /share/rob/nzb.out 2>&1) & 3) Script nzb.sh nzbhome=/gezin # location of nzb-files on NAS nzbdir=$nzbhome/nzb # download directory on NAS nzbdest=$nzbhome/downloads # log=/share/Download/nzbget_nas.log if [ ! -f $log ]; then echo "Download vanaf NAS" >> $log 2>&1 fi echo "====================================" >> $log date "+%a %d %b %Y tijd: %H:%M" >> $log while : do shopt -s nullglob >> $log 2>&1 for f in $nzbdir/*.nzb do echo "Download $f" >> $log # append nzb-file in queue with categoryname “.gezin” /nmt/apps/bin/nzbget -A "$f" -K .gezin -c /share/.nzbget/nzbget.conf >> $log 2>&1 mv "$f" "$nzbdir/`basename "$f" ".nzb"`.nzb.queued" >> $log 2>&1 done sleep 60 done 4) Add the following lines at the end of unpack nzbget-script: ./share/.nzbget/unpak.sh # Move download from PCH to NAS if downloaddir = /share/Download/.gezin/ if [ "$Category" = ".gezin" ]; then echo "cp -rf $DownloadDir $DownloadDir_NAS" >> $log cp -rf "$DownloadDir" $DownloadDir_NAS >> $log 2>&1 rm -rf "$DownloadDir" >> $log 2>&1 fi 5) After changes reboot the PCH |
|||
|
12-29-2011, 05:25 PM
|
|||
|
|||
|
RE: nzgbet change nzb- and download directory
I'm glad it worked out for you. But that post is totally out of my league
PCH-A100 (FW 01-17-100317-15-POP-402-000) (00-17-091216-15-POP-402 NMT Apps) Philips 28PW9611/01 PAL SD, connected with Composite Old skool
|
|||
|
« Next Oldest | Next Newest »
|

Twitter
Facebook
NMT Wiki
Search
Member List
Help
[19. June 2013] Soundcloud® available now

nzgbet change nzb- and download directory





![[+]](images/collapse_collapsed.gif)