ahmedayman4a / Linkedin-Learning-Courses-Downloader

Download LinkedIn Learning Courses in mp4 format and in the video quality you like with an intuitive UI
453 stars 139 forks source link

Video quality resolutions: 540p instead of 720p #10

Closed Ledigh closed 2 years ago

Ledigh commented 3 years ago

Good morning !

Thanks for the programme: Clear description and instructions ;) … Even though “video quality” is set to high (720p) the program still downloads (did I say “randomly”) 540p quality videos files… for example using this following link: advanced-drum-recording-session-with-josh-freese …results are a mix of 540p and 720p, though all 540p still have their corresponding 720p versions available; I can even download them from the “Internet Download Manager” button through its browser extension.

Any ideas about this issue ? Thanks :)

ahmedayman4a commented 3 years ago

Looks like this only happens with certain courses. After investigating the issue here is what I found:

The api that my app and most other downloaders is the same linkedin learning one. Maybe the website accesses a different api function but the one I use is learning-api/detailedcourses. When making a get request for this api with 720p it sometimes returns a 540p video download url for some reason. This is the api's fault as it should return a 720p video as requested. Here is an example :

In both cases resolution=_720 is supplied but the api randomly responded with a 540p video in the first case.

There are 2 fixes I have in mind: