diff --git a/modules/presseurop/backend.py b/modules/presseurop/backend.py index 6b8ff058..8f7b4ef3 100644 --- a/modules/presseurop/backend.py +++ b/modules/presseurop/backend.py @@ -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 diff --git a/modules/presseurop/tools.py b/modules/presseurop/tools.py index e6586882..322c3d92 100644 --- a/modules/presseurop/tools.py +++ b/modules/presseurop/tools.py @@ -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)