enen92/script.module.thesportsdb

Testing this module?

Opened this issue · 5 comments

@enen92 Is there any way to test this module in a normal python environment such as Pycharms without XBMC?

I'd just like to play around with it in a test environment first.

No problem if not, thought it was quicker to ask :)

Not really at the moment it has dependencies on Kodi python modules. It does Not make much sense and can probably remove them easily. Furthermore the code has to be ported to py3 for future Kodi versions. I am quite busy till the end of this month though

I re-arranged the API instruction page to make it much simpler now.
https://www.thesportsdb.com/api.php
Sorry for the old API method names, I didn't want to break anything.

@zag2me I am working now on this library. Main goals (in order are):

  • Code refactoring (PEP8 style)
  • Remove dependencies from kodi
  • Make it compatible with python3 (if it is not already)
  • Add missing methods (your changes to the site api)
  • Make a pip package
  • Write unit tests for each method
  • Sphinx like documentation instead of the one I have now

Just bumping this as I am really looking forward to any improvements and my Python skills have improved drastically recently. I believe all your sports Add-ons are currently broken after the move to HTTPS by TheSportsDB.

I even started completing all the Portuguese Primeira Liga team lineups in anticipation to help with testing ;)
https://www.thesportsdb.com/league/4344

Is there anything I can do to help at all? I've linked to this module on the main developers page as a Python tool. We already have a PHP one as well. Hopefully this makes it easier for developers to find.