Better annotation of feedsburner/feedsportal code

master
pictuga 2013-06-11 13:02:16 +02:00
parent 0978e76356
commit f0b237364f
1 changed files with 2 additions and 1 deletions

View File

@ -333,11 +333,12 @@ def Fill(rss, cache, feedurl="/", fast=False):
log('no link')
return True
# feedburner and others
# feedburner
if '{http://rssnamespace.org/feedburner/ext/1.0}origLink' in item:
item.link = item['{http://rssnamespace.org/feedburner/ext/1.0}origLink']
log(item.link)
# feedsportal
match = re.search('/([0-9a-zA-Z]{20,})/story01.htm$', item.link)
if match:
url = match.groups()[0].split('0')