mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 03:24:54 +00:00
[#2826] Fix create_torrent filedump not encoded
This commit is contained in:
parent
c39f00fa0b
commit
3ba5443c76
1 changed files with 2 additions and 1 deletions
|
@ -667,7 +667,8 @@ class Core(component.Component):
|
|||
options = {}
|
||||
options["download_location"] = os.path.split(path)[0]
|
||||
with open(target, "rb") as _file:
|
||||
self.add_torrent_file(os.path.split(target)[1], _file.read(), options)
|
||||
filedump = base64.encodestring(_file.read())
|
||||
self.add_torrent_file(os.path.split(target)[1], filedump, options)
|
||||
|
||||
@export
|
||||
def upload_plugin(self, filename, filedump):
|
||||
|
|
Loading…
Add table
Reference in a new issue