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.
This commit is contained in:
Florent 2013-09-25 12:33:42 +02:00
commit fcc4f7b5d5
2 changed files with 4 additions and 3 deletions

View file

@ -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

View file

@ -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)