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:
parent
bc2b2d561e
commit
61d5590796
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue