From f0b237364fcbdbde21978060ce9dc020f0eb8a63 Mon Sep 17 00:00:00 2001 From: pictuga Date: Tue, 11 Jun 2013 13:02:16 +0200 Subject: [PATCH] Better annotation of feedsburner/feedsportal code --- morss.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/morss.py b/morss.py index 20c6a3a..fb1f2f3 100644 --- a/morss.py +++ b/morss.py @@ -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')