r0oth3x49 / lynda-dl

A cross-platform python based utility to download courses from lynda.com for personal offline use.
MIT License
295 stars 95 forks source link

Error while downloading using cookies #54

Closed anandchavan closed 5 years ago

anandchavan commented 5 years ago

python lynda-dl.py -k cookie.txt https://www.lynda.com/Amazon-Web-Services-tutorials/Amazon-Web-Services-Design-Implement-Systems/624303-2.html -q 1080

oooo                                .o8                      .o8  oooo    
 `888                               "888                     "888  `888    
  888  oooo    ooo ooo. .oo.    .oooo888   .oooo.        .oooo888   888    
  888   `88.  .8'  `888P"Y88b  d88' `888  `P  )88b      d88' `888   888    
  888    `88..8'    888   888  888   888   .oP"888 8888 888   888   888    
  888     `888'     888   888  888   888  d8(  888      888   888   888    
 o888o     .8'     o888o o888o `Y8bod88P" `Y888""8o     `Y8bod88P" o888o   
       .o..P'                                                                  
       `Y8P'                Version : 0.3
                    Author  : Nasir Khan (r0ot h3x49)
                    Github  : https://github.com/r0oth3x49

[*] : Trying to login using cookies ...
[+] : Logged in successfully.
[*] : Downloaded course information .. (done)
[*] : Trying to logout now...
[+] : Logged out successfully.
[*] : Course 'Amazon Web Services_ Design and Implement Systems'.
[+] : Chapter(s) (6).
[*] : Lecture(s) (35).

[*] : Downloading chapter : (1 of 6)
[+] : Chapter (01 Introduction)
[*] : Found (3) lectures ...
Traceback (most recent call last):
  File "lynda-dl.py", line 395, in <module>
    main()
  File "lynda-dl.py", line 355, in main
    lynda.course_download(path=options.output, quality=options.quality)
  File "lynda-dl.py", line 204, in course_download
    lecture_best = lecture.get_quality(best_quality=lecture_best, streams=lecture_streams, requested=quality)
  File "/home/anchavan/#Study/lynda/lynda-dl/lynda/_shared.py", line 256, in get_quality
    if not best:
UnboundLocalError: local variable 'best' referenced before assignment