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:
parent
cf6c421264
commit
fcc4f7b5d5
2 changed files with 4 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue