mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Propagate fix to wsj_free.recipe as well
This commit is contained in:
parent
9b5cd1e134
commit
2df665d4e7
@ -92,6 +92,8 @@ class WSJ(BasicNewsRecipe):
|
||||
try:
|
||||
br.open(url)
|
||||
except Exception as e:
|
||||
hdrs_location = e.hdrs.get('location')
|
||||
if hdrs_location:
|
||||
url = e.hdrs.get('location')
|
||||
raw = read_url(self.storage, 'https://archive.is/latest/' + url)
|
||||
pt = PersistentTemporaryFile('.html')
|
||||
|
Loading…
x
Reference in New Issue
Block a user