mirror of
https://cdm-project.com/Download-Tools/udemy-downloader.git
synced 2025-05-01 23:04:25 +02:00
Merge pull request #79 from perfectra1n/line-ending-patch
This commit is contained in:
commit
28b2cc8e7d
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