Faster relative link resolution
parent
7575291f8f
commit
1bd17f1365
3
morss.py
3
morss.py
|
@ -297,8 +297,7 @@ def Fill(item, cache, feedurl='/', fast=False):
|
||||||
log(item.link)
|
log(item.link)
|
||||||
|
|
||||||
# check relative urls
|
# 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
|
# check unwanted uppercase title
|
||||||
if len(item.title) > 20 and item.title.isupper():
|
if len(item.title) > 20 and item.title.isupper():
|
||||||
|
|
Loading…
Reference in New Issue