Check relative url earlier
parent
1e621099e0
commit
fd1501a0c0
6
morss.py
6
morss.py
|
@ -273,6 +273,9 @@ def Fill(item, cache, feedurl='/', fast=False):
|
|||
|
||||
log(item.link)
|
||||
|
||||
# check relative urls
|
||||
item.link = urlparse.urljoin(feedurl, item.link)
|
||||
|
||||
# feedburner
|
||||
feeds.NSMAP['feedburner'] = 'http://rssnamespace.org/feedburner/ext/1.0'
|
||||
match = item.xval('feedburner:origLink')
|
||||
|
@ -295,9 +298,6 @@ def Fill(item, cache, feedurl='/', fast=False):
|
|||
item.link = match[0]
|
||||
log(item.link)
|
||||
|
||||
# check relative urls
|
||||
item.link = urlparse.urljoin(feedurl, item.link)
|
||||
|
||||
# check unwanted uppercase title
|
||||
if len(item.title) > 20 and item.title.isupper():
|
||||
item.title = item.title.title()
|
||||
|
|
Loading…
Reference in New Issue