From 1570132a551ec553dbd852af26a123448d94b744 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sat, 18 May 2013 22:52:02 +0200 Subject: [PATCH] Don't try to rss parse empty string fix #1418 --- couchpotato/core/providers/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/providers/base.py b/couchpotato/core/providers/base.py index 809ec616..72bf42a6 100644 --- a/couchpotato/core/providers/base.py +++ b/couchpotato/core/providers/base.py @@ -62,7 +62,7 @@ class Provider(Plugin): cache_key = '%s%s' % (md5(url), md5('%s' % kwargs.get('params', {}))) data = self.getCache(cache_key, url, **kwargs) - if data: + if data and len(data) > 0: try: data = XMLTree.fromstring(data) return self.getElements(data, item_path)