mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-11 03:55:43 +00:00
[AutoAdd] Remove duplicate magnet extension when splitting
This commit is contained in:
parent
bcf0fe4a61
commit
2d4dec669e
@ -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…
x
Reference in New Issue
Block a user