Open ineednewpajamas opened 3 days ago
Also tested on 4.1.7-develop6 just in case, still an issue. I tried to look through the code but I'm stumped.
I wonder if the issue is here: https://github.com/StuffAnThings/qbit_manage/blob/adb58ddd1486207cab087647e577a07028a37103/modules/core/share_limits.py#L545
Since max_seeding_time defaults to -1, wouldn't it never really be None
and there is no check for -1 so it would hit that else statement that removes the min_seeding_time_tag. I did test it locally adding in this right above the if statement on 550 and it did seem to work
if max_seeding_time == -1:
return False
could totally be wrong, i'll make a PR and let you judge
PR looks fine, made one more minor change to catch a similar bug for max_ratio and left one more comment to test. Once that's done I think we're ready to merge the change. Thanks for the contribution!
Describe the Bug
Recently added min_seeding_time to a share limit, it partially works in that the torrent hit the ratio and qbit paused it, then QM disabled the ratio and resumed it (but never added the MinSeedTimeNotReached tag), the next run though it sets back the ratio and a then qbit pauses it again....and repeat.
I tried adding the MinSeedTimeNotReached manually, and QM just removes it. The trace logs havent been helpful.
torrent with the issue is
mayor.of.kingstown.s03e05.1080p.web.h264-successfulcrab[EZTVx.to].mkv[eztvx.to]
trace where it set the ratio and removed the tag i had manually added: https://privatebin.net/?5317f37d52b2c0a1#9mEhbDzfSF9gxCREG7u7VjTZiHAdaGZhWEyX6MU3BRNo partial trace where it said it removed the ratio and said it added the tag but the tag wasnt added: https://privatebin.net/?5b69cc17542dc38d#BNWuQ1BEp5BYgEGfeob48hCiaoK5Vagq3kV14StTbaLa
also included the info level log of it removing the ratio one running and saying it was adding MinSeedTimeNotReached, then the next run saying it was both adding the MinSeedTimeNotReached and then setting the ratio back to 1
Config
Logs
https://privatebin.net/?65ea07d7966ebdbd#GdNHtKfVkUnKsAmWgvKGyEuFHX8nRJpBFdcEMnFCpwpf
Screenshots
No response
Installation
Docker
Version Number
4.1.7-develop1
What branch are you on?
develop