File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 4747import traceback
4848import urllib
4949
50- from deluge .common import is_url
50+ from deluge .common import is_url , decode_bytes
5151from deluge .core .rpcserver import export
5252from deluge .plugins .pluginbase import CorePluginBase
5353import deluge .component as component
@@ -101,7 +101,7 @@ def update_trackerlist_from_url(self):
101101 except :
102102 # maybe an older Python version without a "context" argument
103103 page = urllib .request .urlopen (req ).read ()
104- new_trackers = [url for url in re .findall (b'\w+://[\w\-.:/]+' , page ) if is_url (url )]
104+ new_trackers = [decode_bytes ( url ) for url in re .findall (b'\w+://[\w\-.:/]+' , page ) if is_url (decode_bytes ( url ) )]
105105 if new_trackers :
106106 # replace all existing trackers
107107 self .config ["trackers" ] = []
You can’t perform that action at this time.
0 commit comments