mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-16 21:36:40 +00:00
[Core] Ensure magnet name passed to lt in string
This commit is contained in:
parent
d91e5d894f
commit
bebc414136
@ -322,9 +322,10 @@ class TorrentManager(component.Component):
|
||||
add_torrent_params["name"] = name
|
||||
torrent_id = str(torrent_info.info_hash())
|
||||
elif magnet:
|
||||
magnet = utf8_encoded(magnet)
|
||||
magnet_info = get_magnet_info(magnet)
|
||||
if magnet_info:
|
||||
add_torrent_params["url"] = utf8_encoded(magnet)
|
||||
add_torrent_params["url"] = magnet
|
||||
add_torrent_params["name"] = magnet_info["name"]
|
||||
torrent_id = magnet_info["info_hash"]
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user