Page 1 of 1
Bug in API reference
Posted: February 28th, 2010, 3:13 pm
by dougle
Add by file path uses a url of "api?mode=addlocalfile&value=full/local/path/to/file.ext&pp=1&script=script.cmd&priority=-1" which uses value instead of name which the source uses.
Should be:
api?mode=addlocalfile&name=full/local/path/to/file.ext&pp=1&script=script.cmd&priority=-1
Re: Bug in API reference
Posted: February 28th, 2010, 3:25 pm
by switch
Thanks,
I had fixed it in the text of example link, just not in the url of the link
Re: Bug in API reference
Posted: February 28th, 2010, 6:15 pm
by dougle
No prob, i've spotted another error in the docs which isn't worth opening up a new topic:
In
http://wiki.sabnzbd.org/directory-setup there is the sentence below that i dont think applies to linux installs as my install takes relative paths from the home directory.
All relative paths you set in the INI file, will be relative to the location of the INI file.
Re: Bug in API reference
Posted: February 28th, 2010, 6:48 pm
by switch
I am pretty sure it is still relative to the location of the ini (which by default is inside the home directory)
Re: Bug in API reference
Posted: March 1st, 2010, 3:16 am
by shypike
There's a subtle difference in how you start SABnzbd.
When you do not use the -f parameter, then all folders will be in ~/.sabnzbd
(so relative to the ini file), except the "incomplete" and "complete" folders.
When you do use the -f parameter, all folders will be relative to the ini file.
Re: Bug in API reference
Posted: March 1st, 2010, 2:49 pm
by dougle
shypike wrote:
There's a subtle difference in how you start SABnzbd.
When you do not use the -f parameter, then all folders will be in ~/.sabnzbd
(so relative to the ini file), except the "incomplete" and "complete" folders.
When you do use the -f parameter, all folders will be relative to the ini file.
Not too sure i understand your post shypike as my ini file is in ~/.sabnzbd both with and without -f switch would be relative to my ini.
Adding:
logging.info('Dirscanner ' + cfg.DIRSCAN_DIR.get())
logging.info('Dirscanner ' + cfg.DIRSCAN_DIR.get_path())
to dirscanner.py yeilds:
dougle@local:~$ tail -f /home/dougle/.sabnzbd/logs/sabnzbd.log | grep Dirscanner
2010-03-01 19:38:52,211::INFO::[dirscanner:268] Dirscanner Download
2010-03-01 19:38:52,211::INFO::[dirscanner:269] Dirscanner /home/dougle/Download
This was an install from the repos
I knew i wasn't crazy.....
Re: Bug in API reference
Posted: March 1st, 2010, 3:01 pm
by shypike
We don't create the repository release, that's done by JCFP.
He runs his own board on this forum.
Re: Bug in API reference
Posted: March 1st, 2010, 6:59 pm
by switch
I get your point now dougle, only the log_dir, nzb_backup_dir and cache_dir on that page are relative to the ini. I have updated the wiki to reflect that. Thanks