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

int() argument must be a string, a bytes-like object or a number, not 'NoneType' #615

Closed coffeebeantraining closed 3 years ago

coffeebeantraining commented 3 years ago

Describe the bug A clear and concise description of what the bug is.

While downloading course content from udemy i get the following error:

Downloading asset(s) Downloading (047 6-SafariDriverMac.txt) Asset : '047 6-SafariDriverMac.txt' (download skipped) Reason : int() argument must be a string, a bytes-like object or a number, not 'NoneType'

This error: Reason : int() argument must be a string, a bytes-like object or a number, not 'NoneType' seems to be repeating over and over for various files while downloading.

To Reproduce Steps to reproduce the behavior:

  1. udemy course url: [e.g https://www.udemy.com/machinelearning/] '...' https://www.udemy.com/course/selenium-webdriver-with-java-testng-and-log4j
  2. Run the following command to reproduce the error.: python udemy-dl.py https://www.udemy.com/course/selenium-webdriver-with-java-testng-and-log4j/ -k cookies.txt
  3. See error Image attached.

Expected behavior A clear and concise description of what you expected to happen. No error, but instead if the content is not supposed to be downloaded then assure the user it's expected.

Screenshots If applicable, add screenshots to help explain your problem. Attached.

Python Environment (please complete the following information):

Additional context Add any other context about the problem here.

r0oth3x49 commented 3 years ago

use latest master. it's already fixed