mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Respect timeout when downloading RSS feeds
This commit is contained in:
parent
c614710354
commit
f8a3a780a8
@ -1680,7 +1680,7 @@ class BasicNewsRecipe(Recipe):
|
||||
url = purl._replace(netloc=hostname).geturl()
|
||||
if purl.username and purl.password:
|
||||
br.add_password(url, purl.username, purl.password)
|
||||
with closing(br.open_novisit(url)) as f:
|
||||
with closing(br.open_novisit(url, timeout=self.timeout)) as f:
|
||||
raw = f.read()
|
||||
parsed_feeds.append(feed_from_xml(
|
||||
raw, title=title, log=self.log,
|
||||
|
Loading…
x
Reference in New Issue
Block a user