Backward compatibility with tracker sharing response
This commit is contained in:
parent
8c5c3cb7a6
commit
1a9529157f
1 changed files with 2 additions and 0 deletions
|
@ -120,6 +120,8 @@ class TrackerStorage(object):
|
|||
|
||||
num_success += 1
|
||||
for tracker_address in res["trackers"]:
|
||||
if type(tracker_address) is bytes: # Backward compatibilitys
|
||||
tracker_address.decode("utf8")
|
||||
added = self.onTrackerFound(tracker_address)
|
||||
if added: # Only add one tracker from one source
|
||||
break
|
||||
|
|
Loading…
Reference in a new issue