Just verifying that http://my-sabnzbd-install/api?mode=autoshutdown&name=0&apikey=<key> indeed is not implemented as its output states.
Even though it's not listed in the API Spec Wiki page, I saw it here: http://wiki.sabnzbd.org/automation-support
Thanks in advance.
API mode=autoshutdown not implemented
Forum rules
Help us help you:
Help us help you:
- Are you using the latest stable version of SABnzbd? Downloads page.
- Tell us what system you run SABnzbd on.
- Adhere to the forum rules.
- Do you experience problems during downloading?
Check your connection in Status and Interface settings window.
Use Test Server in Config > Servers.
We will probably ask you to do a test using only basic settings. - Do you experience problems during repair or unpacking?
Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Re: API mode=autoshutdown not implemented
Checking the source ... https://github.com/sabnzbd/sabnzbd/blob ... zbd/api.py indeed does NOT show 'autoshutdown'. See below for a quick-and-dirty overview of implemented API commands/words.
FWIW I use http://wiki.sabnzbd.org/api for my API information.
FWIW I use http://wiki.sabnzbd.org/api for my API information.
Code: Select all
$ cat sabnzbd/sabnzbd/api.py | grep " '.*(_api"
'server_stats': (_api_server_stats, 2),
'get_config': (_api_get_config, 3),
'set_config': (_api_set_config, 3),
'del_config': (_api_del_config, 3),
'qstatus': (_api_qstatus, 2),
'queue': (_api_queue, 2),
'options': (_api_options, 2),
'translate': (_api_translate, 2),
'addfile': (_api_addfile, 1),
'retry': (_api_retry, 2),
'addlocalfile': (_api_addlocalfile, 1),
'switch': (_api_switch, 2),
'change_cat': (_api_change_cat, 2),
'change_script': (_api_change_script, 2),
'change_opts': (_api_change_opts, 2),
'fullstatus': (_api_fullstatus, 2),
'history': (_api_history, 2),
'get_files': (_api_get_files, 2),
'addurl': (_api_addurl, 1),
'addid': (_api_addurl, 1),
'pause': (_api_pause, 2),
'resume': (_api_resume, 2),
'shutdown': (_api_shutdown, 3),
'warnings': (_api_warnings, 2),
'config': (_api_config, 2),
'get_cats': (_api_get_cats, 2),
'get_scripts': (_api_get_scripts, 2),
'version': (_api_version, 1),
'auth': (_api_auth, 1),
'restart': (_api_restart, 3),
'restart_repair': (_api_restart_repair, 2),
'disconnect': (_api_disconnect, 2),
'osx_icon': (_api_osx_icon, 3),
'rescan': (_api_rescan, 2),
'eval_sort': (_api_eval_sort, 2),
'watched_now': (_api_watched_now, 2),
'resume_pp': (_api_resume_pp, 2),
'pause_pp': (_api_pause_pp, 2),
'rss_now': (_api_rss_now, 2),
'browse': (_api_browse, 2),
'retry_all': (_api_retry_all, 2),
'reset_quota': (_api_reset_quota, 2),
'test_email': (_api_test_email, 2),
'test_notif': (_api_test_notif, 2),
'test_growl': (_api_test_growl, 2),
'test_osd': (_api_test_osd, 2),
'test_pushover': (_api_test_pushover, 2),
'test_pushbullet': (_api_test_pushbullet, 2),
'test_prowl': (_api_test_prowl, 2)
'delete': (_api_queue_delete, 2),
'delete_nzf': (_api_queue_delete_nzf, 2),
'rename': (_api_queue_rename, 2),
'change_complete_action': (_api_queue_change_complete_action, 2),
'purge': (_api_queue_purge, 2),
'pause': (_api_queue_pause, 2),
'resume': (_api_queue_resume, 2),
'priority': (_api_queue_priority, 2),
'sort': (_api_queue_sort, 2),
'rating': (_api_queue_rating, 2)
'speedlimit': (_api_config_speedlimit, 2),
'set_speedlimit': (_api_config_speedlimit, 2),
'get_speedlimit': (_api_config_get_speedlimit, 2),
'set_colorscheme': (_api_config_set_colorscheme, 2),
'set_pause': (_api_config_set_pause, 2),
'set_apikey': (_api_config_set_apikey, 3),
'set_nzbkey': (_api_config_set_nzbkey, 3),
'test_server': (_api_config_test_server, 2)
Re: API mode=autoshutdown not implemented
It's a mistake, this was never implemented.
Given its triviality to implement, I'll have a look at it.
Given its triviality to implement, I'll have a look at it.
Re: API mode=autoshutdown not implemented
What already has been implemented is this:
Code: Select all
Action on queue complete
Added in 0.4
URL: api?mode=queue&name=change_complete_action&value=hibernate_pc
Description: (For a script, append script_ to "value" such as "value=script_examplescript.cmd")