techtanic / Discounted-Udemy-Course-Enroller

A script/software for automatically enrolling/joining 100% discounted Udemy courses for free. Get Paid Udemy courses for free with just a few clicks.
https://duce.techtanic.space
MIT License
820 stars 237 forks source link

[Bug]: indexerror: list index out of range #170

Closed sebbu2 closed 2 months ago

sebbu2 commented 3 months ago

What happened?

I ran duce-cli-windows.exe and got an error at 129/659. The error shouldn't happen, and if it does, it shouldn't prevent the script to continue, except if it repeats several times.

Enroller

CLI

OS

Windows

Relevant log output

[129 / 659]  English Academic Vocabulary Professional Certification AVPC https://www.udemy.com/course/english-academic-vocabulary-professional-certification-avpc/?couponCode=65D740C3BFB19CA68931
('Error', 'Traceback (most recent call last):\n  File "cli.py", line 93, in <module>\n  File "base.py", line 868, in start_enrolling\n    course_id, self.link, is_free = self.get_course_id(self.link)\n                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File "base.py", line 479, in get_course_id\n    instructors = [\n                  ^\n  File "base.py", line 480, in <listcomp>\n    i["absolute_url"].split("/")[-2]\n    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^\nIndexError: list index out of range\n\n\nhttps://www.udemy.com/course/english-academic-vocabulary-professional-certification-avpc/?couponCode=65D740C3BFB19CA68931\nEnglish Academic Vocabulary Professional Certification AVPC|:|Unknown Error v2.1')
Press Enter to exit...

Terms

techtanic commented 2 months ago

Thank you for reporting this, I have already fixed this in the upcoming version, will be released soon

techtanic commented 2 months ago

Fixed in latest version