mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-17 05:47:50 +00:00
Fix execute plugin not working with unicode torrent names
This commit is contained in:
parent
183c47f810
commit
9829bec390
@ -110,6 +110,14 @@ class Core(CorePluginBase):
|
|||||||
else:
|
else:
|
||||||
save_path = info["save_path"]
|
save_path = info["save_path"]
|
||||||
|
|
||||||
|
# getProcessOutputAndValue requires args to be str
|
||||||
|
if isinstance(torrent_name, unicode):
|
||||||
|
torrent_id = torrent_id.encode("utf-8", "ignore")
|
||||||
|
if isinstance(torrent_name, unicode):
|
||||||
|
torrent_name = torrent_name.encode("utf-8", "ignore")
|
||||||
|
if isinstance(save_path, unicode):
|
||||||
|
save_path = save_path.encode("utf-8", "ignore")
|
||||||
|
|
||||||
log.debug("[execute] Running commands for %s", event)
|
log.debug("[execute] Running commands for %s", event)
|
||||||
|
|
||||||
def log_error(result, command):
|
def log_error(result, command):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user