(2015-04-28, 20:05)Ovokx Wrote: I don't know if others soccer leagues do so, but La Liga through its official YouTube channel releases every week a resume with the highlights of games (see here an example: https://www.youtube.com/watch?v=-ShIXjPTuIE#t=182). What do you think about including this videos at event level?
Also NBA have it
It's sort of planned for external scripts. The idea is to make this addon a frontend for sports that anyone can use to feed information in. Anything stable will be in the core (there's no reason for not being on the database itself), anything that might fail and that is unstable by nature will be left for external scripts
Better this way otherwise everything would have to be done by me and this one is already too much.
I don't know yet how I will move for external scripts but probably if an addon has a file called sportscenter.cfg in its root folder the addon will assume it is a media provider for sportscenter. The sportscenter.cfg file will define what the addon provides (eg: provides:highlighs/provides:livematch/provides:full-replay) and for what leagues/teams it provides media. Then the addon will read this file for every addon, check if it provides media for that league and call the sportscenter.py file that also should be placed in the root folder of the addon doing whatever the user wants. Sportscenter will pass any external scripts a dictionary containing the league name, the home and away teams, the date and the round. And expects a return from them.
I was also thinking of granting users or other devs a way of using the event listing interface and the league list interface of the addon to populate with data in their own creations. Don't know yet how that can be accomplished but it's certainly possible.
Now bug fixes and finishing up the library, then the scrapper for the library, then on-screen live information, then...and only then, external script support.
Note: I will most likely expect a return of a thesportsdb api key from external scripts as well so their access can be controlled.