diff --git a/LabelPlus-0.3.2.2-py2.7.egg b/LabelPlus-0.3.2.2-py2.7.egg new file mode 100644 index 0000000..1ed5fb5 Binary files /dev/null and b/LabelPlus-0.3.2.2-py2.7.egg differ diff --git a/labelplus/core/core.py b/labelplus/core/core.py index df291c5..e662d9d 100644 --- a/labelplus/core/core.py +++ b/labelplus/core/core.py @@ -39,6 +39,7 @@ import datetime import logging import os +from time import sleep import twisted.internet @@ -733,7 +734,7 @@ def set_torrent_labels(self, torrent_ids, label_id): @check_init def on_torrent_added(self, torrent_id): - + sleep(3.0) label_id = self._do_autolabel_torrent(torrent_id) if label_id != labelplus.common.label.ID_NONE: @@ -1616,7 +1617,7 @@ def _find_autolabel_match(self, torrent_id): def _do_autolabel_torrent(self, torrent_id): - + assert(torrent_id in self._torrents) label_id = self._find_autolabel_match(torrent_id) @@ -1630,7 +1631,7 @@ def _do_autolabel_torrent(self, torrent_id): def _do_autolabel_torrents(self, label_id, apply_to_all=False): - + assert(label_id in self._labels) changed = False