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