This commit is contained in:
Zoe Roux
2020-11-15 01:33:51 +01:00
parent 8f4a922292
commit 67231c5af5

View File

@@ -19,8 +19,6 @@ class RssInput(Input):
return "Rss"
def generate(self) -> Generator[APData, None, None]:
setattr(logging, "trace", lambda msg, *args, **kwargs: True)
logging.debug(f"Pulling the rss feed at {self.url}, last etag: {self.last_etag}, modif: {self.last_modified}")
feed = feedparser.parse(self.url, etag=self.last_etag, modified=self.last_modified)
if feed.status != 304: