Fix #1900213 [Calibre crash in get_extra_css(ln 27) bytes-like object needed](https://bugs.launchpad.net/calibre/+bug/1900213)

This commit is contained in:
Kovid Goyal 2020-10-17 08:24:49 +05:30
parent 09665e11a8
commit 4163614ef7
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -25,7 +25,7 @@ class SmashingMagazine (BasicNewsRecipe):
if not self.extra_css: if not self.extra_css:
br = self.get_browser() br = self.get_browser()
self.extra_css = br.open_novisit( self.extra_css = br.open_novisit(
'https://raw.githubusercontent.com/laMarciana/gutenweb/master/dist/gutenweb.css').read().replace('@charset "UTF-8";', '') 'https://raw.githubusercontent.com/laMarciana/gutenweb/master/dist/gutenweb.css').read().decode('utf-8').replace('@charset "UTF-8";', '')
return self.extra_css return self.extra_css
feeds = [ feeds = [