1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2025-02-24 15:00:30 +00:00

Fix adding torrents to transmission

Addresses an issue when Mylar and Transmission are no on the same disk space (e.g. Docker or a remote transmission instance.)  Using `file://` tells transmissionrpc to base64 the contents of the torrent file vs passing the path to the torrent file to transmission.

Fixes #1526
This commit is contained in:
Brian Hartvigsen 2017-06-01 15:23:27 -06:00 committed by evilhero
parent bc2b2d561e
commit 61d5590796

View file

@ -77,7 +77,7 @@ class TorrentClient(object):
down_dir = mylar.CHECK_FOLDER
else:
down_dir = mylar.TRANSMISSION_DIRECTORY
torrent = self.conn.add_torrent(filepath,
torrent = self.conn.add_torrent('file://%s' % filepath,
download_dir=down_dir)
torrent.start()