r0oth3x49 / udemy-dl

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

Android course #22

Closed PatrikValkovic closed 6 years ago

PatrikValkovic commented 6 years ago

App raise Error, when try to download https://www.udemy.com/become-an-android-developer-from-scratch course.

[*] : Downloading course information webpages ..
[*] : Found (121) lectures ...
[*] : Extracting (121/1) |----------------------------------------| 0.83%                  
[*] : Extracting (121/2) |=---------------------------------------| 1.65%                  
[*] : Extracting (121/3) |=---------------------------------------| 2.48%                  
Traceback (most recent call last):
  File ".\udemy-dl.py", line 858, in <module>
    main()
  File ".\udemy-dl.py", line 531, in main
    udemy.ExtractAndDownload()
  File ".\udemy-dl.py", line 282, in ExtractAndDownload
    videos_dict = self.clean_dict(extract_info.real_extract(self.url, course_name, course_path))
  File "C:\Users\kowalsky\Downloads\udemy-dl\udemy\_extractor.py", line 298, in real_extract
    if lecture_id not in udemy_dict[chap]:
KeyError: None

versions:

PS C:\Users\kowalsky\Downloads\udemy-dl> python --version
Python 3.6.2
PS C:\Users\kowalsky\Downloads\udemy-dl> pip --version
pip 9.0.1 from c:\users\kowalsky\appdata\local\programs\python\python36\lib\site-packages (python 3.6)
PS C:\Users\kowalsky\Downloads\udemy-dl> python.exe .\udemy-dl.py --version

              __                               ____
   __  ______/ /__  ____ ___  __  __      ____/ / /
  / / / / __  / _ \/ __ `__ \/ / / /_____/ __  / /
 / /_/ / /_/ /  __/ / / / / / /_/ /_____/ /_/ / /
 \__,_/\__,_/\___/_/ /_/ /_/\__, /      \__,_/_/
                           /____/
                                 Version : 0.3
                                 Author  : Nasir khan(r0ot h3x49)
                                 Visit   : https://github.com/r0oth3x49

udemy-dl.py version 0.3

using Windows 10.

r0oth3x49 commented 6 years ago

@PatrikValkovic thanks for the report i have fixed the issue. check again and let me know if you are still facing the problem. POC. test

PatrikValkovic commented 6 years ago

Seems that its working fine now. Thx.