From 93f06af3008d53896a2839aab7d525b7bd8576d6 Mon Sep 17 00:00:00 2001 From: Brian Hartvigsen Date: Sun, 14 Sep 2014 13:11:57 -0600 Subject: [PATCH] Fix where there may be empty values (such as cookies) in older configurations --- sickbeard/providers/rsstorrent.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/sickbeard/providers/rsstorrent.py b/sickbeard/providers/rsstorrent.py index 3cf27c8a..fe7b5320 100644 --- a/sickbeard/providers/rsstorrent.py +++ b/sickbeard/providers/rsstorrent.py @@ -53,9 +53,14 @@ class TorrentRssProvider(generic.TorrentProvider): self.cookies = cookies def configStr(self): - return self.name + '|' + self.url + '|' + self.cookies + '|' + str( - int(self.enabled)) + '|' + self.search_mode + '|' + str(int(self.search_fallback)) + '|' + str( - int(self.enable_daily)) + '|' + str(int(self.enable_backlog)) + return "%s|%s|%s|%d|%s|%d|%d|%d" % (self.name or '', + self.url or '', + self.cookies or '', + self.enabled, + self.search_mode or '', + self.search_fallback, + self.enable_daily, + self.enable_backlog) def imageName(self): if ek.ek(os.path.isfile,