Fix #790 tracker hosts not correct for some .uk trackers

This commit is contained in:
Andrew Resch 2009-03-08 20:19:19 +00:00
parent 5ce82498ac
commit fdf78bc7fd
2 changed files with 2 additions and 2 deletions

View file

@ -2,6 +2,7 @@
==== Core ====
* Fix displaying file errors when the torrent isn't paused
* Fix issue where torrents being check would get removed due to "stop at ratio" rules
* Fix #790 tracker hosts not correct for some .uk trackers
==== GtkUI ====
* Fix hiding bottom pane when no tabs are enabled upon restart
@ -9,7 +10,6 @@
* Fix the allocate mode not being preserved when selecting different torrents in addtorrentdialog
* Fix #655 issue where default torrent options wouldn't be set for new torrents added to the addtorrentdialog
* Fix #817 email notifications fail to substitute format strings
* Change SignalReceiver to use non-blocking socket
==== Plugins ====
* Label: Fix setting 'Move on completed' folder when connected to a remote daemon

View file

@ -537,7 +537,7 @@ class Torrent:
parts = host.split(".")
if len(parts) > 2:
if parts[-2] in ("co", "com", "net", "org"):
if parts[-2] in ("co", "com", "net", "org") or parts[-1] in ("uk"):
host = ".".join(parts[-3:])
else:
host = ".".join(parts[-2:])