fedarovich / qbittorrent-cli

Command line interface for QBittorrent
MIT License
291 stars 16 forks source link

Remove torrents with a certain set category #107

Closed rustiferch closed 1 month ago

rustiferch commented 1 month ago

Hi Team, Just wondering if its possible in the future to not only remove torrents via their hash, but also an option to remove any torrents assigned to a specific category?

rustiferch commented 1 month ago

For anyone looking for the same thing, I worked out a simple PowerShell script to get around this:

qbt torrent list --url http://localhost:8080 -c TVDONECATEGORY --format csv|out-file c:\temp\hashoutput.txt $amount = 40 $data = get-content "c:\temp\hashoutput.txt" foreach($line in $data) { qbt torrent delete --url http://localhost:8080 $line.substring(0, $amount) }

rustiferch commented 1 month ago

Wondering if this feature should still be added in the future but for now I'm closing the issue/request.