From a4cf5e0daae44d6490a7755f926e2910237bf4e9 Mon Sep 17 00:00:00 2001 From: pictuga Date: Sat, 22 Mar 2014 20:52:25 +0100 Subject: [PATCH] Google link cleaner now works on all .dot versions --- morss/morss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morss/morss.py b/morss/morss.py index 1976820..51fd785 100644 --- a/morss/morss.py +++ b/morss/morss.py @@ -361,7 +361,7 @@ def Fix(item, feedurl='/'): item.link = urlparse.urljoin(feedurl, item.link) # google - if fnmatch(item.link, 'http://www.google.com/url?q=*'): + if fnmatch(item.link, 'http://www.google.*/url?q=*'): item.link = urlparse.parse_qs(urlparse.urlparse(item.link).query)['q'][0] log(item.link)