Merge pull request #79 from perfectra1n/line-ending-patch

This commit is contained in:
Puyodead1 2021-12-03 16:08:13 -05:00 committed by GitHub
commit 28b2cc8e7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.")