qBittorrent-Ratio-Manager icon indicating copy to clipboard operation
qBittorrent-Ratio-Manager copied to clipboard

Feature Request: list qman that is running so can verify deletions are correct

Open BinsonBuzz opened this issue 5 years ago • 3 comments

Hi

At the moment it runs through the qman files in sequence and then deletes. Rather than (below is for verbose):

INFO:root:Checking 330 torrents for imported
INFO:root:Checking 330 torrents for imported
INFO:root:Checking 330 torrents for imported
INFO:root:Deleting following torrents from the imported category
INFO:root:torrent_x
INFO:root:torrrent_y
NFO:root:Checking 298 torrents for imported
INFO:root:Checking 298 torrents for imported
INFO:root:Checking 298 torrents for imported
Checked 330 torrents!
Deleted 2 torrents!

It'd be nice if it said:

INFO:root:Checking 330 torrents for imported
INFO:root:Deleting following torrents from the imported category
INFO:root:torrent_x from xxx.qman
INFO:root:torrrent_y from yyy.qman
INFO:root:Checking 298 torrents for imported

or something similar so if needs be you could find/correct errors quicker.

Thanks

BinsonBuzz avatar Feb 03 '20 13:02 BinsonBuzz

Good suggestion, i agree it's simpler. I'll look into it when i have time

Hundter avatar Feb 03 '20 18:02 Hundter

Thanks.

INFO:root: xxx.qman deleting following torrents from the imported category

Might be even simpler (for someone who can code unlike me) and cleaner

BinsonBuzz avatar Feb 03 '20 19:02 BinsonBuzz

A --dryrun option would be nice to verify configurations. As a new user, I made a quick edit to ensure bad things weren't about to happen during my first run due to an improper configuration. :)

#        QBitController.get("torrents/delete?hashes=" + hashes_to_delete_string + "&deleteFiles=" + delete_files_string)
    print("Preview only - Not Removing/Deleting Torrents - To disable, uncomment resources/QBitController.py line 56")

I'll switch which line is commented when creating new qman files.

LongDono avatar May 04 '21 18:05 LongDono