TRoboto / datacamp-downloader

Download your completed courses on Datacamp easily!
MIT License
178 stars 52 forks source link

JSON no longer has 'has_active_subscription' field #72

Open jorritvm opened 4 months ago

jorritvm commented 4 months ago

Current build will crash due to datacamp no longer providing this JSON field. Removing that check from the set_profile method fixes things. There seems to be no clear substitute key, apart maybe from the key indicating if the user is on his first trial week.

https://github.com/TRoboto/datacamp-downloader/blob/cc04f1ffabeb7f1e828db6c5d0d177dfc905df31/src/datacamp_downloader/datacamp_utils.py#L486

Ben-0-mad commented 4 months ago

There is a key called active_products. That might be a good substitute.

AbhijeetRoy2107 commented 3 months ago

can someone please help me with the "has_active_subscription" error