From 5e481623fc698e10e3199231cffbef7ae60114b2 Mon Sep 17 00:00:00 2001 From: Ruud Date: Thu, 2 Aug 2012 21:54:47 +0200 Subject: [PATCH] Remove right path sep. fix #646 --- couchpotato/core/downloaders/transmission/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/couchpotato/core/downloaders/transmission/main.py b/couchpotato/core/downloaders/transmission/main.py index 1819f310..5bdd65bd 100644 --- a/couchpotato/core/downloaders/transmission/main.py +++ b/couchpotato/core/downloaders/transmission/main.py @@ -4,6 +4,7 @@ from couchpotato.core.helpers.encoding import isInt from couchpotato.core.logger import CPLog import httplib import json +import os.path import re import urllib2 @@ -31,7 +32,7 @@ class Transmission(Downloader): # Set parameters for Transmission params = { 'paused': self.conf('paused', default = 0), - 'download-dir': self.conf('directory', default = None) + 'download-dir': self.conf('directory', default = '').rstrip(os.path.sep) } torrent_params = {