From 1bd17f1365e218f8f83a9ae22571c4a1f345cf1d Mon Sep 17 00:00:00 2001 From: pictuga Date: Sun, 15 Sep 2013 19:18:39 +0200 Subject: [PATCH] Faster relative link resolution --- morss.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/morss.py b/morss.py index 36da4d2..dfd4b2c 100644 --- a/morss.py +++ b/morss.py @@ -297,8 +297,7 @@ def Fill(item, cache, feedurl='/', fast=False): log(item.link) # check relative urls - if urlparse.urlparse(item.link).netloc is '': - item.link = urlparse.urljoin(feedurl, item.link) + item.link = urlparse.urljoin(feedurl, item.link) # check unwanted uppercase title if len(item.title) > 20 and item.title.isupper():