mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-05 07:58:38 +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
|
break
|
||||||
else:
|
else:
|
||||||
short_hash = magnet.split("btih:")[1][:8]
|
short_hash = magnet.split("btih:")[1][:8]
|
||||||
mname = '.'.join([filename, short_hash, "magnet"])
|
mname = '.'.join([os.path.splitext(filename)[0], short_hash, "magnet"])
|
||||||
try:
|
try:
|
||||||
_mfile = open(mname, "w")
|
_mfile = open(mname, "w")
|
||||||
except IOError, e:
|
except IOError, e:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue