Puyodead1 / udemy-downloader

A Udemy downloader that can download courses, with DRM support.
MIT License
1.31k stars 306 forks source link

[Bug]: TypeError: unsupported operand type(s) error when downloading courses #239

Closed denes44 closed 1 month ago

denes44 commented 1 month ago

What happened?

Doesn't matter which parameters I use, I always got the error message below.

Expected Result

I expected the download of a source successful.

Branch

master/main

What operating systems are you seeing the problem on?

Windows

Relevant log output

D:\udemy-downloader-master>main.py -c "https://www.udemy.com/course/[course_name]/learn/" --browser chrome --log-level DEBUG
Traceback (most recent call last):
  File "D:\udemy-downloader-master\main.py", line 1179, in <module>
    audio_key: Union[str | None] = None,
TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'

Other information

No response

Puyodead1 commented 1 month ago

You need python 3.10 or higher

denes44 commented 1 month ago

Oh, thank you. That was it.