Skip to content

Commit

Permalink
Merge pull request #4542 from ichorid/f_copy_unicode_torrent
Browse files Browse the repository at this point in the history
Fix copying torrent with unicode name to personal channel
  • Loading branch information
xoriole authored Jun 7, 2019
2 parents b8ec29d + 4da9408 commit d6cb10e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tribler/Core/Utilities/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def parse_magnetlink(url):
for key, value in parse_qsl(query):
if key == "dn":
# convert to Unicode
dn = value.decode() if not isinstance(value, six.text_type) else value
dn = value.decode('utf-8') if not isinstance(value, six.text_type) else value

elif key == "xt" and value.startswith("urn:btih:"):
# vliegendhart: Adding support for base32 in magnet links (BEP 0009)
Expand Down

0 comments on commit d6cb10e

Please sign in to comment.