mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-05 07:58:38 +00:00
fix filtering on the tracker host, use ==
rather than in
so tracker urls that contain another trackers url within them aren't picked up as well
This commit is contained in:
parent
7ebe07db15
commit
b2990e89cb
2 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
=== Deluge 1.2.0_rc6 (In Development) ===
|
=== Deluge 1.2.0_rc6 (In Development) ===
|
||||||
==== Core ====
|
==== Core ====
|
||||||
* Fix file renaming
|
* Fix file renaming
|
||||||
|
* Fix tracker host filtering (Closes #1106)
|
||||||
|
|
||||||
==== GtkUI ====
|
==== GtkUI ====
|
||||||
* Fix #1104, #735 use path.utf-8 if available
|
* Fix #1104, #735 use path.utf-8 if available
|
||||||
|
|
|
@ -84,7 +84,7 @@ def tracker_error_filter(torrent_ids, values):
|
||||||
# If this is a tracker_host, then we need to filter on it
|
# If this is a tracker_host, then we need to filter on it
|
||||||
if values[0] != "Error":
|
if values[0] != "Error":
|
||||||
for torrent_id in torrent_ids:
|
for torrent_id in torrent_ids:
|
||||||
if values[0] in tm[torrent_id].get_status(["tracker_host"])["tracker_host"]:
|
if values[0] == tm[torrent_id].get_status(["tracker_host"])["tracker_host"]:
|
||||||
filtered_torrent_ids.append(torrent_id)
|
filtered_torrent_ids.append(torrent_id)
|
||||||
return filtered_torrent_ids
|
return filtered_torrent_ids
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue