Replace uppercase title with "title-case"
parent
f09dfbacf5
commit
e05d1c9deb
5
morss.py
5
morss.py
|
@ -345,6 +345,11 @@ def Fill(rss, cache, feedurl="/", fast=False):
|
||||||
if urlparse.urlparse(item.link).netloc is '':
|
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 'title' in item:
|
||||||
|
if len(item.title) > 20 and item.title.isupper():
|
||||||
|
item.title = item.title.title()
|
||||||
|
|
||||||
# content already provided?
|
# content already provided?
|
||||||
if 'content' in item and 'desc' in item:
|
if 'content' in item and 'desc' in item:
|
||||||
len_content = lenHTML(item.content)
|
len_content = lenHTML(item.content)
|
||||||
|
|
Loading…
Reference in New Issue