core.py:
on_torrent_added() is called upon adding a new torrent, which calls _set_torrent_label() with label ID_NONE, which then resets some torrents options. It potentially overwrites options which have been set in the Add Torrent dialog already.
Torrent added with the "Move Completed Location" option set:
Option is reset as soon as the torrent is added:
For a quick fix I changed on_torrent_added() to (changed if statement):
@check_init
def on_torrent_added(self, torrent_id):
label_id = self._find_autolabel_match(torrent_id)
if label_id and label_id != labelplus.common.label.ID_NONE:
self._set_torrent_label(torrent_id, label_id)
log.info("Setting torrent %r to label %r", torrent_id, label_id)
self._timestamp["mappings_changed"] = datetime.datetime.now()
So _set_torrent_label(...) is not called if the new torrent has the default label ID_NONE.
core.py
:on_torrent_added()
is called upon adding a new torrent, which calls_set_torrent_label()
with labelID_NONE
, which then resets some torrents options. It potentially overwrites options which have been set in the Add Torrent dialog already.Torrent added with the "Move Completed Location" option set:
Option is reset as soon as the torrent is added:
For a quick fix I changed
on_torrent_added()
to (changed if statement):So
_set_torrent_label(...)
is not called if the new torrent has the default labelID_NONE
.