commit e5b7ada0504e8274b155dd92dc307839413c999b
parent 8d8e8928a4f4dfa46f6b757fdd4d14a31a7fb79c
Author: Thorsten Ortlepp <post@ortlepp.eu>
Date: Mon, 21 Mar 2022 21:03:36 +0100
Since today topic is already part of feed item title
Diffstat:
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/deutschlandfunk.py b/deutschlandfunk.py
@@ -23,7 +23,7 @@ class DeutschlandfunkFeed:
SQLITE_SQL_CLEAN = "DELETE FROM deutschlandfunk WHERE created < ?"
SQLITE_SQL_GET = "SELECT title, content, link, created FROM deutschlandfunk WHERE export = 1 ORDER BY created DESC"
- UNWANTED_TOPICS = ["Wetter", "Fußball-Bundesliga", "Fußball", "Fußball Europa League", "DFB-Pokal", "Lottozahlen", "Lotto", "Bundesliga", "American Football"]
+ UNWANTED_TOPICS = ["Wetter", "Fußball-Bundesliga", "Fußball", "Fußball Europa League", "DFB-Pokal", "Lottozahlen", "Lotto", "Bundesliga", "American Football", "Formel 1"]
def __read_article_content(self, link):
@@ -94,9 +94,6 @@ class DeutschlandfunkFeed:
content = self.__read_article_content(link)
export = 1
- if len(content[0]) > 0:
- title = content[0] + ": " + title
-
if content[0] in self.UNWANTED_TOPICS:
export = 0