diff --git a/buzzrss/bot.py b/buzzrss/bot.py index bd5ce90..3fce734 100644 --- a/buzzrss/bot.py +++ b/buzzrss/bot.py @@ -255,7 +255,11 @@ class RSSBot(Plugin): feed = Feed(id=-1, url=url, title="", subtitle="", link="") elif url is not None: raise ValueError("Only one of feed or url must be set") - resp = await self.http.get(feed.url, headers=self._feed_get_headers) + resp = await self.http.get( + feed.url, + headers=self._feed_get_headers, + timeout=aiohttp.ClientTimeout(total=20), + ) ct = resp.headers["Content-Type"].split(";")[0].strip() if ct == "application/json" or ct == "application/feed+json": return await self._parse_json(feed, resp) diff --git a/maubot.yaml b/maubot.yaml index f0e281e..7db05d9 100644 --- a/maubot.yaml +++ b/maubot.yaml @@ -1,5 +1,5 @@ id: nl.eddydevink.rss -version: 1.2.1 +version: 1.2.2 modules: - buzzrss main_class: RSSBot