mirror of
https://cdm-project.com/Download-Tools/udemy-downloader.git
synced 2025-04-30 15:24:25 +02:00
strip line endings from reading cookies
This commit is contained in:
parent
666c5c2122
commit
d519d62c60
1
main.py
1
main.py
@ -57,6 +57,7 @@ keyfile = json.loads(keyfile)
|
|||||||
if os.path.exists(cookiefile_path):
|
if os.path.exists(cookiefile_path):
|
||||||
with open(cookiefile_path, encoding="utf8", mode='r') as cookiefile:
|
with open(cookiefile_path, encoding="utf8", mode='r') as cookiefile:
|
||||||
cookies = cookiefile.read()
|
cookies = cookiefile.read()
|
||||||
|
cookies = cookies.rstrip()
|
||||||
else:
|
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.")
|
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.")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user