api call not deleting all
Posted: April 6th, 2020, 4:42 am
Version 2.3.9 [03c10dc]
Limux Mint 19.3 64bit Cinnamon
I got the idea from here, use an api call to clear the queue of a specific type of download.
I am running
curl "http://localhost:8085/sabnzbd/api?mode= ... pikey=<api key>
this appears to delete SOME of the time. It is run after every download from yyy, via a post processing shell script.
Sometimes it leaves the queue untouched, but if I run it from the shell it works.
The script is running according to the log,
2020-04-04 09:01:00,937::INFO::[newsunpack:169] Running external script /home/<USERNAME>/nzb/post/post-tv.sh <...>
2020-04-04 09:01:01,378::DEBUG::[interface:481] API-call from 127.0.0.1 [curl/7.58.0] {'category': u'yyy', 'apikey': u'<HASH>a12f5e3', 'mode': u'history', 'value': u'all', 'name': u'delete'}
Limux Mint 19.3 64bit Cinnamon
I got the idea from here, use an api call to clear the queue of a specific type of download.
I am running
curl "http://localhost:8085/sabnzbd/api?mode= ... pikey=<api key>
this appears to delete SOME of the time. It is run after every download from yyy, via a post processing shell script.
Sometimes it leaves the queue untouched, but if I run it from the shell it works.
The script is running according to the log,
2020-04-04 09:01:00,937::INFO::[newsunpack:169] Running external script /home/<USERNAME>/nzb/post/post-tv.sh <...>
2020-04-04 09:01:01,378::DEBUG::[interface:481] API-call from 127.0.0.1 [curl/7.58.0] {'category': u'yyy', 'apikey': u'<HASH>a12f5e3', 'mode': u'history', 'value': u'all', 'name': u'delete'}