This commit is contained in:
Kovid Goyal 2023-10-20 11:17:07 +05:30
commit af0838ca96
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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()