From 1d10d30173e077b0ae7110e8d5cf60c720495349 Mon Sep 17 00:00:00 2001 From: pictuga Date: Sat, 30 Nov 2013 19:36:44 +0100 Subject: [PATCH] Reddit: check feed url instead of link url --- morss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morss.py b/morss.py index 21ef1cd..032a169 100644 --- a/morss.py +++ b/morss.py @@ -359,7 +359,7 @@ def Fix(item, feedurl='/'): log(item.link) # reddit - if urlparse.urlparse(item.link).netloc == 'www.reddit.com': + if urlparse.urlparse(feedurl).netloc == 'www.reddit.com': match = lxml.html.fromstring(item.desc).xpath('//a[text()="[link]"]/@href') if len(match): item.link = match[0]