Better annotation of feedsburner/feedsportal code
parent
0978e76356
commit
f0b237364f
3
morss.py
3
morss.py
|
@ -333,11 +333,12 @@ def Fill(rss, cache, feedurl="/", fast=False):
|
||||||
log('no link')
|
log('no link')
|
||||||
return True
|
return True
|
||||||
|
|
||||||
# feedburner and others
|
# feedburner
|
||||||
if '{http://rssnamespace.org/feedburner/ext/1.0}origLink' in item:
|
if '{http://rssnamespace.org/feedburner/ext/1.0}origLink' in item:
|
||||||
item.link = item['{http://rssnamespace.org/feedburner/ext/1.0}origLink']
|
item.link = item['{http://rssnamespace.org/feedburner/ext/1.0}origLink']
|
||||||
log(item.link)
|
log(item.link)
|
||||||
|
|
||||||
|
# feedsportal
|
||||||
match = re.search('/([0-9a-zA-Z]{20,})/story01.htm$', item.link)
|
match = re.search('/([0-9a-zA-Z]{20,})/story01.htm$', item.link)
|
||||||
if match:
|
if match:
|
||||||
url = match.groups()[0].split('0')
|
url = match.groups()[0].split('0')
|
||||||
|
|
Loading…
Reference in New Issue