Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

console mode "hide" instead of delete #819

Open
geolaw opened this issue Jul 8, 2022 · 0 comments
Open

console mode "hide" instead of delete #819

geolaw opened this issue Jul 8, 2022 · 0 comments

Comments

@geolaw
Copy link

geolaw commented Jul 8, 2022

I use console mode to delete some entries from history.
I've got a script I wrote that sits inside my container that I can call with a podman exec -it :

$ podman_shell nzbget cat /config/nzb_purge
#!/bin/bash

for i in $(/app/nzbget/nzbget -c /config/nzbget.conf -L H |egrep -i "$1" |awk '{print $1}'|sed s'/\[\(.*\)\]/\1/'); do 
/app/nzbget/nzbget -c /config/nzbget.conf --edit H D $i  >> /config/purge.log
done

From the command line, the following options are available for manipulating the history :

   - for history (H):
       D                    Delete
       P                    Post-process again
       R                    Download remaining files
       A                    Download again
       F                    Retry download of failed articles
       O <name>=<value>     Set post-process parameter
       B                    Mark as bad
       G                    Mark as good
       S                    Mark as success

From the webgui, the delete option has the "hide" option which is recommended, which helps to keep track in case the same nzb gets queued for download in the future.

Is it possible to add the "hide" option to console mode?

e.g. maybe lower case 'd' for "hide", upper case "D" for delete.

/app/nzbget/nzbget -c /config/nzbget.conf --edit H d $i  >> /config/purge.log
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant