Skip to content
This repository has been archived by the owner on Aug 1, 2021. It is now read-only.

Lectures are (seemingly) randomly getting skipped #628

Closed
acefalobi opened this issue Apr 13, 2021 · 5 comments
Closed

Lectures are (seemingly) randomly getting skipped #628

acefalobi opened this issue Apr 13, 2021 · 5 comments
Labels
duplicate This issue or pull request already exists

Comments

@acefalobi
Copy link

acefalobi commented Apr 13, 2021

I tried to download a course from a udemy account, it downloads some lectures, but others just get skipped with no errors or warnings. When I try to list the lectures, the same thing happens. It shows the number of lectures, but only lists some or none of them.

Udemy course URL: [https://softcom.udemy.com/course/machinelearning]. (I can email you the credentials if need be).

Command: python udemy-dl.py https://softcom.udemy.com/course/machinelearning/ to download and python udemy-dl.py https://softcom.udemy.com/course/machinelearning/ --info to list the lectures.

This is a snippet of what I get when I try to list the lectures:

...
[i] : Trying to login as (ace@softcom.ng)
[i] : Logged in successfully.
[+] : Downloaded course information ..  (done)
[i] : Trying to logout now...
[i] : Logged out successfully.
[+] : Course 'machinelearning'
[i] : Chapter(s) (45)
[i] : Lecture(s) (322)

[i] : Chapter (01 Welcome to the course!-1432236)
[i] : Lecture(s) (14)
     - duration   : 03:22.
     - Lecture id : 6087180.
	- hls:mp4@360            360p    
	- hls:mp4@432            432p    
	- hls:mp4@576            576p    
	- hls:mp4@720            720p    
	- hls:mp4@1080           1080p   
	- video:mp4@144          144p    2.07MB 
	- video:mp4@360          360p    3.83MB 
	- video:mp4@480          480p    5.29MB 
	- video:mp4@720          720p    7.99MB 
	- video:mp4@1080         1080p   9.81MB (Best)
	- subtitle:id@vtt        vtt     5.08KB
	- subtitle:fr@vtt        vtt     5.27KB
	- subtitle:de@vtt        vtt     5.04KB
	- subtitle:pt@vtt        vtt     5.07KB
	- subtitle:it@vtt        vtt     5.05KB
	- subtitle:es@vtt        vtt     4.91KB
	- subtitle:en@vtt        vtt     4.64KB
     - duration   : 05:40.
     - Lecture id : 5728004.
	- hls:mp4@360            360p    
	- hls:mp4@432            432p    
	- hls:mp4@576            576p    
	- hls:mp4@720            720p    
	- hls:mp4@1080           1080p   
	- video:mp4@360          360p    7.24MB 
	- video:mp4@480          480p    11.26MB 
	- video:mp4@720          720p    17.55MB 
	- video:mp4@1080         1080p   23.21MB (Best)
	- subtitle:en@vtt        vtt     7.94KB
	- subtitle:pt@vtt        vtt     8.17KB
	- subtitle:de@vtt        vtt     8.39KB
	- subtitle:es@vtt        vtt     8.02KB
	- subtitle:fr@vtt        vtt     8.41KB
	- subtitle:it@vtt        vtt     7.93KB

[i] : Chapter (02 -------------------- Part 1_ Data Preprocessing ---------------------4506024)
[i] : Lecture(s) (1)

[i] : Chapter (03 Data Preprocessing in Python-1422414)
[i] : Lecture(s) (9)

[i] : Chapter (04 Data Preprocessing in R-4506056)
[i] : Lecture(s) (10)
...

You can see that the first chapter says 14 lectures but only shows 2 and the following ones don't even show any at all.

  • OS Platform: macOS Big Sur (Version 11.2 (20D64))
  • Python Version: 3.8.2
@acefalobi
Copy link
Author

acefalobi commented Apr 13, 2021

After further investigation of the code, it seems the stream_urls parameter is null in some assets, even though they are videos. Any thoughts as to what might be causing this?

Example:

{
  '_class': 'asset',
  'asset_type': 'Video',
  'body': '',
  'captions': [...],
  'download_urls': None,
  'external_url': '',
  'filename': 'ML-is-the-future.mp4',
  'id': 7236304,
  'slide_urls': [],
  'stream_urls': None,
  'time_estimation': 397,
  'title': 'ML_is_the_future.mp4'
}

@nChauhan91
Copy link

I think it's the same issue as this

#627

@acefalobi
Copy link
Author

True. Do you know why the stream_urls might be returning for some lecture videos and not others?

@iaman1998
Copy link

I am facing the same issue.

@r0oth3x49
Copy link
Owner

lets discuss the issue in #627, closing this as dup

@r0oth3x49 r0oth3x49 added the duplicate This issue or pull request already exists label Apr 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

4 participants