From bae3cb5d30f2acaefee024173e146811b35f1859 Mon Sep 17 00:00:00 2001 From: jvandenbroek Date: Mon, 14 Mar 2016 14:47:51 +0100 Subject: [PATCH] Fix Transmission directory when not running local --- couchpotato/core/downloaders/transmission.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/couchpotato/core/downloaders/transmission.py b/couchpotato/core/downloaders/transmission.py index 78f8fd7..f40b955 100644 --- a/couchpotato/core/downloaders/transmission.py +++ b/couchpotato/core/downloaders/transmission.py @@ -67,7 +67,8 @@ class Transmission(DownloaderBase): } if self.conf('directory'): - if os.path.isdir(self.conf('directory')): + host = cleanHost(self.conf('host')).rstrip('/').rsplit(':', 1) + if os.path.isdir(self.conf('directory')) or not (host[0] == '127.0.0.1' or host[0] == 'localhost'): params['download-dir'] = self.conf('directory').rstrip(os.path.sep) else: log.error('Download directory from Transmission settings: %s doesn\'t exist', self.conf('directory'))