r0oth3x49 / udemy-dl

A cross-platform python based utility to download courses from udemy for personal offline use.
MIT License
4.83k stars 1.19k forks source link

Not all lectures in course being downloaded #666

Closed tworstwots closed 2 years ago

tworstwots commented 2 years ago

Describe the bug The first two lectures are downloaded, but not the rest. There is no indication of whether the other lectures are DRM protected, the program just stops. Downloading using the -l flag does not work either.

To Reproduce Steps to reproduce the behavior:

  1. udemy course url: https://www.udemy.com/course/absolute-introduction-to-object-oriented-programming-in-java/
  2. Run the following command to reproduce the error: python .\udemy-dl.py https://www.udemy.com/course/absolute-introduction-to-object-oriented-programming-in-java/ -k .\cookie.txt
  3. See error

[i] : Trying to login using session cookie [i] : Logged in successfully. [+] : Downloaded course information .. (done) [i] : Trying to logout now... [i] : Logged out successfully. [+] : Course 'absolute-introduction-to-object-oriented-programming-in-java' [i] : Chapter(s) (1) [i] : Lecture(s) (11)

[i] : Downloading chapter : (1 of 1) [i] : Chapter (01 Introduction to Object Orientation in Java) [i] : Found (11) lecture(s).

[i] : Lecture(s) : (1 of 11) [i] : Downloading (001 Basics of a Java Program) [*] : 21.82MB/21.82MB 100.00% |##############################| 2.81MB/s [i] : Downloaded (001 Basics of a Java Program)

[i] : Downloading subtitle(s) [i] : Downloading (001 Basics of a Java Program.en) [*] : 12.15KB/12.15KB 100.00% |##############################| 41.36kB/s [i] : Downloaded (001 Basics of a Java Program.en)

[i] : Lecture(s) : (2 of 11) [i] : Downloading (002 Class and Object) [*] : 35.67MB/35.67MB 100.00% |##############################| 2.51MB/s [i] : Downloaded (002 Class and Object)

[i] : Downloading subtitle(s) [i] : Downloading (002 Class and Object.en) [*] : 13.67KB/13.67KB 100.00% |##############################| 147.75kB/s [i] : Downloaded (002 Class and Object.en)

Expected behavior All lectures are downloaded.

Python Environment (please complete the following information):