From 98d01fbe35a8cef53477795bdd3b876a08ba49cd Mon Sep 17 00:00:00 2001 From: garret Date: Sat, 2 Nov 2024 17:37:16 +0000 Subject: [PATCH] [UI] Split trackers by newline, not by "/n" Fixes a bug where e.g. http://not-a-real-tracker.com was split into http:/ ot-a-real-tracker.com when the add trackers dialogue was next shown Closes: https://github.com/deluge-torrent/deluge/pull/469 --- deluge/ui/gtk3/createtorrentdialog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/ui/gtk3/createtorrentdialog.py b/deluge/ui/gtk3/createtorrentdialog.py index e9f16906c..ea578a687 100644 --- a/deluge/ui/gtk3/createtorrentdialog.py +++ b/deluge/ui/gtk3/createtorrentdialog.py @@ -493,7 +493,7 @@ class CreateTorrentDialog: *textview_buf.get_bounds(), include_hidden_chars=False ) log.debug('Create torrent tracker lines: %s', trackers_text) - self.config['createtorrent.trackers'] = trackers_text.split('/n') + self.config['createtorrent.trackers'] = trackers_text.splitlines() # Append trackers liststore with unique trackers and tiers starting from last tier number. last_tier, orig_trackers = last_tier_trackers_from_liststore(