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
This commit is contained in:
Noam
2016-03-09 00:01:05 +02:00
parent 9b9d728ce3
commit 479a9548c1

View File

@@ -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