From 7568f45ab09528cec96240964a9aee5e5e713e41 Mon Sep 17 00:00:00 2001
From: P0psicles <rogier@headshots.nl>
Date: Thu, 7 Jan 2016 23:51:10 +0100
Subject: [PATCH] The data.decode was giving errors. Returned html should be in
 unicode, so don't see any reason to decode. But maybe i'm wrong? For this
 worked, tested for a limited set of shows.

---
 sickbeard/providers/danishbits.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sickbeard/providers/danishbits.py b/sickbeard/providers/danishbits.py
index 1afa8ef8c..f3192ff29 100644
--- a/sickbeard/providers/danishbits.py
+++ b/sickbeard/providers/danishbits.py
@@ -129,7 +129,7 @@ class DanishbitsProvider(TorrentProvider):  # pylint: disable=too-many-instance-
                     continue
 
                 try:
-                    with BS4Parser(data.decode('iso-8859-1'), features=["html5lib", "permissive"]) as html:
+                    with BS4Parser(data,"html5lib") as html:
                         # Collecting entries
                         entries = html.find_all('tr', attrs={'class': 'torrent'})
 
-- 
GitLab