mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
bf4732a4ff
commit
88a49d907f
@ -1207,7 +1207,7 @@ class BasicNewsRecipe(Recipe):
|
||||
data = x['data']
|
||||
if isinstance(data, str):
|
||||
data = data.encode(self.encoding or 'utf-8')
|
||||
url = data.get('url', url)
|
||||
url = x.get('url', url)
|
||||
else:
|
||||
with open(x, 'rb') as of:
|
||||
data = of.read()
|
||||
|
Loading…
x
Reference in New Issue
Block a user