From fcc4f7b5d5e2ff31ad11c1b46b9f5db31bf789ce Mon Sep 17 00:00:00 2001 From: Florent Date: Wed, 25 Sep 2013 12:33:42 +0200 Subject: [PATCH] Fix ecrans.fr backend Since ecrans.fr is not a website itself, but part of liberations.fr, we can except some bugs in the next few weeks. --- modules/ecrans/backend.py | 2 +- modules/ecrans/browser.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/ecrans/backend.py b/modules/ecrans/backend.py index 4fca2c72..3d7f523b 100644 --- a/modules/ecrans/backend.py +++ b/modules/ecrans/backend.py @@ -33,7 +33,7 @@ class NewspaperEcransBackend(GenericNewspaperBackend, ICapMessages): NAME = 'ecrans' DESCRIPTION = u'Écrans French news website' BROWSER = NewspaperEcransBrowser - RSS_FEED = 'http://www.ecrans.fr/spip.php?page=backend' + RSS_FEED = 'http://www.ecrans.fr/rss/53/spip.php?page=backend' RSSID = staticmethod(rssid) URL2ID = staticmethod(url2id) # RSS Size is actually 10, but some articles are not sorted by publication date diff --git a/modules/ecrans/browser.py b/modules/ecrans/browser.py index 33ec83bb..0598a117 100644 --- a/modules/ecrans/browser.py +++ b/modules/ecrans/browser.py @@ -39,5 +39,6 @@ class NewspaperEcransBrowser(BaseBrowser): def get_content(self, _id): "return page article content" - self.location(_id) - return self.page.get_article(_id) + url = _id.replace('/rss/53', '') + self.location(url) + return self.page.get_article(url)