Drapersniper / Qbitrr

A simple Python script to talk to Qbit and Arr's
MIT License
26 stars 4 forks source link

'TorrentDictionary' instance has no attribute 'seeding_time' #22

Closed Drapersniper closed 2 years ago

Drapersniper commented 2 years ago

Reported by QuantumX#9620

QBT v4.2.5 qBitrr version: 2.1.20-3460838

Possibly due to QBT version 4.2.5

Source code: https://github.com/Drapersniper/Qbitrr/blob/master/qBitrr/arss.py#L2374

This means that in some instances qBitTorrent may not have full objects available, if this is the case on 4.3.9 the script needs to be update to lazely retrieve attributes rather than expect it for TorrentDictionary objects

According to the WebUI API docs, TorrentDictionary should have seeding_time as of API Version 2.8.1

Potential fix is ensure the script reject qBitTorrent clients with an API version lower than the mininum supported

According to ro qBitTorrent's release tags this is a v4.4.0 attribute and not a 4.3.9 attribute meaning that it requires users to be on qbitTorrent 4.4.0, if this is indeed true need to restrict the tools mininum requirements for qBitTorrent or undo this change.

Checking the changes on the v4.3.x branch -Means that this API version was backported, it was commited to the v4.3.x branch on 23 Mar 2021.

WebAPI v2.8.1 was specifically added to qBitTorrent on version 4.3.4, qBitrr will not work with any version lower than that.

TODO: