From c25bd7e12072e31a0045bffe130d4ef90bd2c942 Mon Sep 17 00:00:00 2001
From: Luca <l.dimarino@gmail.com>
Date: Thu, 9 May 2013 09:50:08 +0200
Subject: [PATCH] KAt use html5 parser for bs4

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

diff --git a/sickbeard/providers/kat.py b/sickbeard/providers/kat.py
index ac345851a..59e441879 100644
--- a/sickbeard/providers/kat.py
+++ b/sickbeard/providers/kat.py
@@ -222,7 +222,7 @@ class KATProvider(generic.TorrentProvider):
                     continue
 
                 try:
-                    soup = BeautifulSoup(html)
+                    soup = BeautifulSoup(html, features=["html5lib", "permissive"])
 
                     torrent_table = soup.find('table', attrs = {'class' : 'data'})
                     torrent_rows = torrent_table.find_all('tr') if torrent_table else []
-- 
GitLab