Closed LOLCATATONIA closed 4 months ago
Could you share the output of locally created files all_courses_metadata.json
and all_courses_with_access.json
?
Hi Anon,
We encountered an issue while trying to use your CLI, and it seems we faced the same problem. Upon debugging for a few minutes, we pinpointed the issue to this line:
l:307: subscriptions = json.loads(user_subs.text).get("data")[0].get("passes").get("data")
It appears that there is no data available to retrieve as the first element from the array.
Endpoint: https://subscriptions.ine.com/subscriptions/subscriptions
Response: {"data":[],"meta":{"cursor":{"current":1,"prev":null,"next":null,"count":0}}}
Let me know if you need further information or assistance.
Best regards,
Are you able to view the courses just fine in the web application? What subscription do you have?
Yep I'm able, sub: B2B Enterprise + Lab experience
I reckon it's the enterprise subscription. I can't really help without a valid account. Happy to look into it if you can share your account.
I reckon it's the enterprise subscription. I can't really help without a valid account. Happy to look into it if you can share your account.
Hi Anon, Can you contact me on Discord? We can take a look on that.
https://github.com/Anon-Exploiter/ine-dl/commit/93f19a9f659f6d50b8ab1655d02806c244e25f71 closes this,
Thanks @breakingartixz for the creds.
@gromula, @LOLCATATONIA - Do a git pull
and let me know if you face any other issues.
I've commented out subscriptions function the user has access to. Now, it'll just download all the courses, if a course isn't accessible. It'll just respond with you do not have access to this course.
Thanks, it's working right now!
ine.py -lct
Tried to make script work on Garuda Linux. Will try Ubuntu later.