From d65f1557405c26c0d8fcb25e1c29eb80b962e10c Mon Sep 17 00:00:00 2001 From: Luke Rogers Date: Wed, 28 Mar 2012 09:18:25 +1300 Subject: [PATCH] Workaround for stupid bug --- plugins/fmylife.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/fmylife.py b/plugins/fmylife.py index fbe5e3c..68d1d89 100755 --- a/plugins/fmylife.py +++ b/plugins/fmylife.py @@ -18,7 +18,7 @@ def refresh_cache(): for e in soup.findAll('div', {'class': 'post article'}): id = int(e['id']) - text = e.find('p', text=True) + text = ''.join(e.find('p').findAll(text=True)) fml_cache[id] = text # do an initial refresh of the cache