[19. June 2013] Soundcloud® available now | [7. June 2013] Youporn available now | [11 Jan. 2013] Customize your A-400 Home Screen

Firmware: A-400 [13 May 2013] | C-300 [30 Nov. 2012] | A-300 [30 Nov. 2012] | C-200 RC1 [13 June 2013] | A-200/A-210 RC1 [13 June 2013]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread: 1 Guest(s)
Post Reply 
nzgbet change nzb- and download directory
12-14-2011, 11:57 AM
Post: #1
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?
Find all posts by this user
Add Thank You Quote this message in a reply
12-14-2011, 12:13 PM (This post was last modified: 12-14-2011 12:15 PM by Cherek.)
Post: #2
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 skoolCool
Find all posts by this user
Add Thank You Quote this message in a reply
12-27-2011, 06:31 PM
Post: #3
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
Find all posts by this user
Add Thank You Quote this message in a reply
12-29-2011, 05:25 PM
Post: #4
RE: nzgbet change nzb- and download directory
I'm glad it worked out for you. But that post is totally out of my league Big Grin


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 skoolCool
Find all posts by this user
Add Thank You Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
Lightbulb Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ Jannyy 193 41,090 Yesterday 08:25 PM
Last Post: supraru
  nzbget does not download twentefan 1 122 Yesterday 12:49 PM
Last Post: chris57
  sickbeard and download folder help! naboull1 1 481 05-11-2013 06:41 PM
Last Post: naboull1
  How to change default transmission UI ????????? fareign 2 539 05-11-2013 12:03 AM
Last Post: fareign
  Transmission. How to change download paths to other HDD connected to A300 ? djhifi 0 502 05-07-2013 01:05 AM
Last Post: djhifi
  Download to NAS or other networked storage. kerberosvx 1 541 04-09-2013 01:24 PM
Last Post: chris57
  NZBGet download x pars instead of one/all/none shazada 0 576 04-07-2013 03:46 PM
Last Post: shazada
  Single download at a time ? divine 1 492 03-28-2013 08:44 PM
Last Post: Willem53
Tongue Script to send NZB(url) to NZBGet using iOS mrmaximum 18 7,273 03-05-2013 12:23 AM
Last Post: rvdet
  [nzbget] NZBget 0.7.0 download and discussion Ger Teunis 492 225,163 01-25-2013 10:02 AM
Last Post: Peige

Forum Jump: