From 4163614ef7af83524bc71434176366008ebc7e09 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 17 Oct 2020 08:24:49 +0530 Subject: [PATCH] Fix #1900213 [Calibre crash in get_extra_css(ln 27) bytes-like object needed](https://bugs.launchpad.net/calibre/+bug/1900213) --- recipes/smashing.recipe | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/smashing.recipe b/recipes/smashing.recipe index 7c7d7580b4..840ca8b36f 100644 --- a/recipes/smashing.recipe +++ b/recipes/smashing.recipe @@ -25,7 +25,7 @@ class SmashingMagazine (BasicNewsRecipe): if not self.extra_css: br = self.get_browser() 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 feeds = [