From 451026f9c8e41b1ec595cc12b61e40b6253484e8 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Fri, 20 Mar 2020 14:13:15 +0100 Subject: [PATCH] cast as string --- get404.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/get404.py b/get404.py index 3b75669..26946a3 100644 --- a/get404.py +++ b/get404.py @@ -11,5 +11,5 @@ for link in links: if html['http_code'] is not 200: print('(%d) %s %s : %s' % (html['http_code'], link.title.name, link.season, link.link)) - elif b'darkgray' in html['output']: + elif 'darkgray' in str(html['output']): print('(darkgray) %s %s : %s' % (link.title.name, link.season, link.link))