From 6975772ef9a9ce6cbe139464bb49d621f76f73b4 Mon Sep 17 00:00:00 2001 From: pictuga Date: Fri, 15 Nov 2013 16:54:41 +0100 Subject: [PATCH] Revert "Improve facebook and feedburner workarounds" This PARTIALLY reverts commit 8a5202efd5cc9ea72c57a53ebb945ffab6eb32ea (only the feedburner part). --- morss.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/morss.py b/morss.py index 39398c2..c4ece16 100644 --- a/morss.py +++ b/morss.py @@ -307,9 +307,9 @@ def Fix(item, feedurl='/'): # feedburner feeds.NSMAP['feedburner'] = 'http://rssnamespace.org/feedburner/ext/1.0' - if item.id: - item.link = item.id - log(item.link) + match = item.xval('feedburner:origLink') + if match: + item.link = match # feedsportal match = re.search('/([0-9a-zA-Z]{20,})/story01.htm$', item.link)