From 04bff7a8abbabc84aaaf238647324d05e190bd75 Mon Sep 17 00:00:00 2001 From: CristianBB <cristian.blazquez.bustos@gmail.com> Date: Sun, 22 Nov 2015 22:18:14 +0100 Subject: [PATCH] Newpct: Correct control if there is no results. --- sickbeard/providers/newpct.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sickbeard/providers/newpct.py b/sickbeard/providers/newpct.py index 0985f73ce..e4ca108dd 100644 --- a/sickbeard/providers/newpct.py +++ b/sickbeard/providers/newpct.py @@ -106,7 +106,7 @@ class newpctProvider(generic.TorrentProvider): with BS4Parser(data, features=["html5lib", "permissive"]) as html: torrent_tbody = html.find('tbody') - if not len(torrent_tbody): + if torrent_tbody is None: logger.log(u"Data returned from provider does not contain any torrents", logger.DEBUG) continue -- GitLab