mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-12 12:34:43 +00:00
[#2476] [GTKUI] Fix adding mistyped trackers urls
This commit is contained in:
parent
d1daeb4cb0
commit
267d331fac
@ -432,6 +432,7 @@ class CreateTorrentDialog(object):
|
||||
self.config['createtorrent.trackers'] = lines
|
||||
log.debug('lines: %s', lines)
|
||||
for l in lines:
|
||||
l = l.replace('\\', '/') # Fix mistyped urls.
|
||||
if is_url(l):
|
||||
trackers.append(l)
|
||||
|
||||
|
@ -220,6 +220,7 @@ class EditTrackersDialog(object):
|
||||
b = textview.get_buffer()
|
||||
lines = b.get_text(b.get_start_iter(), b.get_end_iter()).strip().split('\n')
|
||||
for l in lines:
|
||||
l = l.replace('\\', '/') # Fix mistyped urls.
|
||||
if is_url(l):
|
||||
trackers.append(l)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user