[#2826] Fix create_torrent filedump not encoded
This commit is contained in:
parent
4a62c5eac2
commit
f6e2dab58a
|
@ -835,7 +835,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…
Reference in New Issue