Create an id for daily pages

This commit is contained in:
Florent 2013-01-23 16:27:10 +01:00
commit 438158e19b
2 changed files with 6 additions and 1 deletions

View file

@ -52,8 +52,10 @@ class NewspaperPresseuropBackend(GenericNewspaperBackend, ICapMessages):
if "/news-brief/" in article.link:
day = self.browser.get_daily_date(article.link)
if day and (day not in daily):
localid = url2id(article.link)
daily.append(day)
id, title, date = self.browser.get_daily_infos(day)
id = id + "#" + localid
thread = Thread(id)
thread.title = title
thread.date = date

View file

@ -29,4 +29,7 @@ def url2id(url):
def rssid(entry):
return url2id(entry.link)
if "/today/" in entry.link:
return entry.link.split("#")[1]
else:
return url2id(entry.link)