#2021: Share ratio limit not obeyed for torrents downloaded outside deluge
--------------------+-------------------------------------------------------
Reporter: genia4 | Owner:
Type: bug | Status: new
Priority: minor | Milestone: 1.3.x
Component: core | Version: 1.3.3
Keywords: |
--------------------+-------------------------------------------------------
Comment(by genia4):
This seems to be the offending piece of code (core/torrentmanager.py:269)
{{{
if torrent.get_ratio() >= torrent.options["stop_ratio"]
and torrent.is_finished:
if torrent.options["remove_at_ratio"]:
self.remove(torrent_id)
break
if not torrent.handle.is_paused():
torrent.pause()
}}}
When a torrent is added but not a single byte is downloaded,
torrent.is_finished is not updated as per core/torrentmanager.py:868
Which leads to the above if statement to be false each time for such a
torrent.
Hope this helped.
--
Ticket URL: <http://dev.deluge-torrent.org/ticket/2021#comment:1>
Deluge <http://deluge-torrent.org/>
Deluge project
--
You received this message because you are subscribed to the Google Groups
"Deluge Dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/deluge-dev?hl=en.