From 2d4dec669e8d4be8e264c597795340d52f661ee4 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Mon, 20 Feb 2017 13:22:03 +0000 Subject: [PATCH] [AutoAdd] Remove duplicate magnet extension when splitting --- deluge/plugins/autoadd/autoadd/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/plugins/autoadd/autoadd/core.py b/deluge/plugins/autoadd/autoadd/core.py index adbc66ec5..7af21a928 100644 --- a/deluge/plugins/autoadd/autoadd/core.py +++ b/deluge/plugins/autoadd/autoadd/core.py @@ -203,7 +203,7 @@ class Core(CorePluginBase): break else: short_hash = magnet.split("btih:")[1][:8] - mname = '.'.join([filename, short_hash, "magnet"]) + mname = '.'.join([os.path.splitext(filename)[0], short_hash, "magnet"]) try: _mfile = open(mname, "w") except IOError, e: