diff options
author | Calum Lind <calumlind+deluge@gmail.com> | 2017-02-20 13:22:03 +0000 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2017-02-20 13:22:47 +0000 |
commit | 2d4dec669e8d4be8e264c597795340d52f661ee4 (patch) | |
tree | 7bb0522c524be84aa0e8f69d1f4e570695d9479b | |
parent | bcf0fe4a61dbcbcad5d9eb867ff49e6e1f6f90f2 (diff) | |
download | deluge-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.py | 2 |
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: |