From d519d62c60279cd779b0bd5545a3e273da0e84d6 Mon Sep 17 00:00:00 2001 From: perf3ct Date: Thu, 2 Dec 2021 22:55:43 -0800 Subject: [PATCH] strip line endings from reading cookies --- main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main.py b/main.py index 0d38b58..96ff4de 100644 --- a/main.py +++ b/main.py @@ -57,6 +57,7 @@ keyfile = json.loads(keyfile) if os.path.exists(cookiefile_path): with open(cookiefile_path, encoding="utf8", mode='r') as cookiefile: cookies = cookiefile.read() + cookies = cookies.rstrip() else: print("No cookies.txt file was found, you won't be able to download subscription courses! You can ignore ignore this if you don't plan to download a course included in a subscription plan.")