summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2017-02-20 13:22:03 +0000
committerCalum Lind <calumlind+deluge@gmail.com>2017-02-20 13:22:47 +0000
commit2d4dec669e8d4be8e264c597795340d52f661ee4 (patch)
tree7bb0522c524be84aa0e8f69d1f4e570695d9479b
parentbcf0fe4a61dbcbcad5d9eb867ff49e6e1f6f90f2 (diff)
downloaddeluge-2d4dec669e8d4be8e264c597795340d52f661ee4.tar.gz
deluge-2d4dec669e8d4be8e264c597795340d52f661ee4.tar.bz2
deluge-2d4dec669e8d4be8e264c597795340d52f661ee4.zip
[AutoAdd] Remove duplicate magnet extension when splitting
-rw-r--r--deluge/plugins/autoadd/autoadd/core.py2
1 files changed, 1 insertions, 1 deletions
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: