ankitsejwal / Lyndor

:rocket: Powerful command line tool to download lynda.com courses for personal offline use. :part_alternation_mark:
MIT License
131 stars 32 forks source link

IndexError: string index out of range #67

Closed vi2606 closed 6 years ago

vi2606 commented 6 years ago

Hello, me again! When i download this one: https://www.lynda.com/C-tutorials/Further-Topics-C-Programming/195668-2.html I get the error. Looks like that the chapter name is empty, thus the error...

` creating course folder at: /home/vi420/Videos/Lynda/Advanced C Programming

Course Name Advanced C Programming Course id 195668 Author Name Dan Gookin Topics #Developer #Programming Languages
Softwares #C
Duration 1h 23m Release Date 1/15/2015 Downloaded On 22/September/2018 Course URL https://www.lynda.com/C-tutorials/Further-Topics-C-Programming/195668-2.html

🌟 info.txt created

Creating Chapters:

Traceback (most recent call last): File "run.py", line 137, in main() File "run.py", line 36, in main schedule_download(url) File "run.py", line 55, in schedule_download download_course(url) File "run.py", line 102, in download_course save.chapters(url, course_folder_path) # Create chapter folders File "/home/vi420/Downloads/Lyndor/module/save.py", line 182, in chapters if chapter[1] == '.': IndexError: string index out of range `