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 47
47
import traceback
48
48
import urllib
49
49
50
- from deluge .common import is_url
50
+ from deluge .common import is_url , decode_bytes
51
51
from deluge .core .rpcserver import export
52
52
from deluge .plugins .pluginbase import CorePluginBase
53
53
import deluge .component as component
@@ -101,7 +101,7 @@ def update_trackerlist_from_url(self):
101
101
except :
102
102
# maybe an older Python version without a "context" argument
103
103
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 ) )]
105
105
if new_trackers :
106
106
# replace all existing trackers
107
107
self .config ["trackers" ] = []
You can’t perform that action at this time.
0 commit comments