Jayapraveen / ITPro.Tv-Courses-downloader

Python Script to generate downloadable links for courses from ITPro.tv site
GNU General Public License v3.0
40 stars 11 forks source link

Error when choosing course #8

Closed R0bert0r closed 3 years ago

R0bert0r commented 3 years ago

Encountered the following error when choosing a course:

Enter your choice: 16 Traceback (most recent call last): File "/home/pi/Documents/Python/ITV.py", line 84, in episodes = get_episodes(episodes["course"]["episodes"]) KeyError: 'course' Error

please assist

Thanks

Jayapraveen commented 3 years ago

Please check if the token you entered in configuration file is valid. You might also get this error if the token has expired .Token validation will be added in next release of the script.

Jayapraveen commented 3 years ago

Try version 1.0.3 or later

SteevenRodriguez commented 3 years ago

The length of the token changed to 928 for me, that solved the error.

mrpanda1925 commented 3 years ago

Having a similar issue. Error message as follows.

Traceback (most recent call last): File "C:\users\Daddy Panda\desktop\ITProAlt\itprotv.py", line 143, in episodes_download_links = get_download_links(episode_links,data_auth,resolution) File "C:\users\Daddy Panda\desktop\ITProAlt\itprotv.py", line 104, in get_download_links if (req_data["episode"][resolution] == None): KeyError: 'episode'

Kindly advise. Thank you.

Jayapraveen commented 3 years ago

Fixed in commit b58e678.