From 479a9548c14108c2cf1bd99d3f1fbc63a49f56a2 Mon Sep 17 00:00:00 2001 From: Noam Date: Wed, 9 Mar 2016 00:01:05 +0200 Subject: [PATCH] Set Move-To Path for General Setting - setTorrentPath was called only in case DELUGE_DONE_DIRECTORY was set, forgot about the more general DOWNLOAD_TORRENT_DIR option. Thought about it in deluge.py, forgot about it in searcher.py. This should fix #2557 --- headphones/searcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headphones/searcher.py b/headphones/searcher.py index ee561823..c3e5d72d 100644 --- a/headphones/searcher.py +++ b/headphones/searcher.py @@ -917,7 +917,7 @@ def send_to_downloader(data, bestqual, album): deluge.setSeedRatio({'hash': torrentid, 'ratio': seed_ratio}) # Set move-to directory - if headphones.CONFIG.DELUGE_DONE_DIRECTORY: + if headphones.CONFIG.DELUGE_DONE_DIRECTORY or headphones.CONFIG.DOWNLOAD_TORRENT_DIR: deluge.setTorrentPath({'hash': torrentid}) # Get folder name from Deluge, it's usually the torrent name