mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 03:24:54 +00:00
[AutoAdd] Remove duplicate magnet extension when splitting
This commit is contained in:
parent
bcf0fe4a61
commit
2d4dec669e
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue