Commandline history category

Discuss newly added features or request new features.
Locked
geolaw
Posts: 1
Joined: 17 Jan 2022, 14:57

Commandline history category

Post by geolaw » 17 Jan 2022, 15:09

Running the latest version inside a docker container :

root@fa385aea1c43:/config# /app/nzbget/nzbget -c /config/nzbget.conf -v
nzbget version: 21.1

I've got a script that I run to clean up some history entries -
I run the following and pipe it to egrep to look for keywords in the history and then hide those entries :

/app/nzbget/nzbget -c /config/nzbget.conf -L H
Request sent
History (most recent first)
-----------------------------------
[3252] XXXXXXXXXXXXXXXXXX YYYYYYYYYYYYYYYYYYY ZZZZZZZZZZZZZ
[3251] XXXXXXXXXXXXXXXXXX YYYYYYYYYYYYYYYYYYY ZZZZZZZZZZZZZ
[3250] XXXXXXXXXXXXXXXXXX YYYYYYYYYYYYYYYYYYY ZZZZZZZZZZZZZ
[3249] XXXXXXXXXXXXXXXXXX YYYYYYYYYYYYYYYYYYY ZZZZZZZZZZZZZ
[3248] XXXXXXXXXXXXXXXXXX YYYYYYYYYYYYYYYYYYY ZZZZZZZZZZZZZ

#!/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

It would be great if the history list included the category of the download and then I can just filter my egrep off the category names.

Locked

Who is online

Users browsing this forum: No registered users and 4 guests