fedarovich / qbittorrent-cli

Command line interface for QBittorrent
MIT License
289 stars 15 forks source link

Cannot find property #91

Open saitoh183 opened 10 months ago

saitoh183 commented 10 months ago

I want to build a bash script that will simply find any paused torrent and if the torrent has been there for 5 min or more, unpause it. Because i realized that some of my torrents are not getting auto tagged because they finish to quickly. I tried to utilize the properties command to get the Added date but it seems to fail

qbt torrent properties c42b88 -F property:name=Added
Cannot find property 'Added'.

When i do a verbose on the list of paused, i see Added and i have tried other properties like Size and Save Path and those work but Added and Completion dont

qbt torrent list -f paused --verbose
Name:       [HorribleSubs] Detective Conan S29 - (927-959)  [1080p]                                                                                                    State:      PausedDownload 
Hash:       c42b8877fe21c629489bb4f6f2709fceedd00044  
Size:       27,734,363,102 bytes  
Progress:   0 %  
DL Speed:   0  B/s 
UP Speed:   0  B/s
Priority:   7
Seeds:      0 of 0
Leechers:   0 of 0
Ratio:      0.00
ETA:
Category: tvshows
Tags:       animebytes
Save path:  /data/downloads/tvshows
Added:      09/09/2023 11:18:10
Completion: 01/01/1970 00:00:00 
Options:    Automatic torrent management 

Also if anyone has a example script to do what i described above, it would be appreciated :)

sir-wilhelm commented 10 months ago

list does not give you all the available properties, and changes/shortens the name on some of them.

You can see all the properties with:

qbt torrent properties c42b88

I think you are after 'Addition date', so you can use:

qbt torrent properties c42b88 -F property:name='Addition date'

to fetch it.

saitoh183 commented 10 months ago

@sir-wilhelm cool, that works...now i need to figure out how to use it to unpause torrents that have been added for 5 mins.