Create an id for daily pages
This commit is contained in:
parent
96ca30388d
commit
438158e19b
2 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue