Puyodead1 / udemy-downloader

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

[Bug]: Course not download without any reason provided #192

Closed nightshadecf closed 6 months ago

nightshadecf commented 9 months ago

What happened?

command that I use: py main.py -c https://www.udemy.com/course/cardiac-anatomy-physiology/learn -l all --download-assets --download-captions --download-quizzes --skip-hls --browser chrome

At the end of the log it just returned to the shell without any error reporting. Seems like this specific course has some parsing issue?

Expected Result

I test other courses and script downloads just fine

Branch

Other (Enter below)

What operating systems are you seeing the problem on?

Windows, MacOS

Relevant log output

[01:41:25] [udemy-downloader] [__init__:344] WARNING: No bearer token was provided, attempting to use browser cookies.
[01:41:25] [udemy-downloader] [main:1833] INFO: > Fetching course information, this may take a minute...
[01:41:30] [udemy-downloader] [main:1836] INFO: > Course information retrieved!
[01:41:30] [udemy-downloader] [main:1841] INFO: > Fetching course content, this may take a minute...
[01:41:31] [udemy-downloader] [main:1856] INFO: > Course content retrieved!
[01:41:31] [udemy-downloader] [main:1881] INFO: > Processing course data, this may take a minute. 
[01:41:31] [udemy-downloader] [main:1917] INFO: Processing 1 of 28
[01:41:31] [udemy-downloader] [main:1917] INFO: Processing 2 of 28
[01:41:31] [udemy-downloader] [main:1917] INFO: Processing 3 of 28
[01:41:31] [udemy-downloader] [main:1917] INFO: Processing 4 of 28
[01:41:31] [udemy-downloader] [main:1917] INFO: Processing 5 of 28
[01:41:31] [udemy-downloader] [main:1917] INFO: Processing 6 of 28
[01:41:31] [udemy-downloader] [main:1917] INFO: Processing 7 of 28
[01:41:31] [udemy-downloader] [main:1917] INFO: Processing 8 of 28
[01:41:31] [udemy-downloader] [main:1917] INFO: Processing 9 of 28
[01:41:31] [udemy-downloader] [main:1917] INFO: Processing 10 of 28
[01:41:31] [udemy-downloader] [main:1917] INFO: Processing 11 of 28
[01:41:31] [udemy-downloader] [main:1917] INFO: Processing 12 of 28
[01:41:31] [udemy-downloader] [main:1917] INFO: Processing 13 of 28
[01:41:31] [udemy-downloader] [main:1917] INFO: Processing 14 of 28
[01:41:31] [udemy-downloader] [main:1917] INFO: Processing 15 of 28
[01:41:31] [udemy-downloader] [main:1917] INFO: Processing 16 of 28
[01:41:31] [udemy-downloader] [main:1917] INFO: Processing 17 of 28
[01:41:31] [udemy-downloader] [main:1917] INFO: Processing 18 of 28
[01:41:31] [udemy-downloader] [main:1917] INFO: Processing 19 of 28
[01:41:31] [udemy-downloader] [main:1917] INFO: Processing 20 of 28
[01:41:31] [udemy-downloader] [main:1917] INFO: Processing 21 of 28
[01:41:31] [udemy-downloader] [main:1917] INFO: Processing 22 of 28
[01:41:31] [udemy-downloader] [main:1917] INFO: Processing 23 of 28
[01:41:31] [udemy-downloader] [main:1917] INFO: Processing 24 of 28
[01:41:31] [udemy-downloader] [main:1917] INFO: Processing 25 of 28
[01:41:31] [udemy-downloader] [main:1917] INFO: Processing 26 of 28
[01:41:31] [udemy-downloader] [main:1917] INFO: Processing 27 of 28
[01:41:31] [udemy-downloader] [parse_new:1623] INFO: Chapter(s) (1)
[01:41:31] [udemy-downloader] [parse_new:1624] INFO: Lecture(s) (0)
[01:41:31] [udemy-downloader] [parse_new:1637] INFO: ======= Processing chapter 1 of 1 =======

Other information

Branch: feat/cookies

nightshadecf commented 9 months ago

Side node: I am able to download other courses but all the last chapters are skipped, so I think this bug is related to that since this course has only 1 chapter and is being skipped entirely. And this should be easily fixed?

Puyodead1 commented 6 months ago

Side node: I am able to download other courses but all the last chapters are skipped, so I think this bug is related to that since this course has only 1 chapter and is being skipped entirely. And this should be easily fixed?

pull the latest changes from feat/refactor and try again