Fix adding magnet error in webui when started from classic mode
This commit is contained in:
parent
f0051ee81f
commit
8503687136
@ -480,7 +480,7 @@ class TorrentManager(component.Component):
|
|||||||
handle = None
|
handle = None
|
||||||
try:
|
try:
|
||||||
if magnet:
|
if magnet:
|
||||||
handle = lt.add_magnet_uri(self.session, magnet, add_torrent_params)
|
handle = lt.add_magnet_uri(self.session, utf8_encoded(magnet), add_torrent_params)
|
||||||
else:
|
else:
|
||||||
handle = self.session.add_torrent(add_torrent_params)
|
handle = self.session.add_torrent(add_torrent_params)
|
||||||
except RuntimeError, e:
|
except RuntimeError, e:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user