From b5c474ea701d33152a418c036a3be15faf0f152a Mon Sep 17 00:00:00 2001 From: simon987 Date: Sun, 5 Jul 2020 17:27:09 -0400 Subject: [PATCH] err --- run | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run b/run index 28e4cef..bdcd88a 100755 --- a/run +++ b/run @@ -80,7 +80,7 @@ def do_premium_download(link, i): form = soup.find("form") if not form: - if "The file you were looking for could not be found" not in r.content: + if "The file you were looking for could not be found" not in r.text: print(r.content, file=stderr) return @@ -96,7 +96,7 @@ def do_premium_download(link, i): download_link = soup2.find("a", attrs={"download": lambda x: x}).get("download") _download(download_link, i) except: - if "not found" not in r.content: + if "not found" not in r.text: print(r2.content, file=stderr) pass