Site
Home / Forum / General Discussion / New 2020-2021 Season Todo

New 2020-2021 Season Todo


Posted: 09 Aug 2020 12:03

zag
Posts: 2,131
Joined: 2020-03-23

As mentioned I have been working on the new 2020-2021 soccer importer, its coming along nicely so we should be automated soon. Please don't add any manual events for Soccer 2020 seasons going forward as I would like to test the automation. I'll be using the Slovakian League for most testing as its already started.

Todo
[] Finish new match importer
[] Finish Score update importer
[] Write auto importer for Edit League page to find the current season and API-Football ID.
[] Update 2020-2021 Leagues with new Seasons IDs for API-Football
[] Update seasons that have only "2020" rather than "2020-2021" seasons
[] Schedule importer to run each day for each league
[] Add Country to event soccer importer
[] Add event stats to soccer importer
[] Add events (red and yellow cards) to soccer importer

Any questions or requests let me know.

Posted: 09 Aug 2020 17:28
curswine
Posts: 336
Joined: 2020-06-17

As the Champions League and Europa League are still technically 19-20 at the moment, would I be fine to add the early fixtures for the 20-21 season or will they be imported too?

Posted: 09 Aug 2020 19:55

zag
Posts: 2,131
Joined: 2020-03-23

As the Champions League and Europa League are still technically 19-20 at the moment, would I be fine to add the early fixtures for the 20-21 season or will they be imported too?

Should all be imported automatically depending on the current season. Champions league is a funny one due to the timings so it might be better to keep the 2019-2020 season manually updated.

Anyone can still add events manually but my mission is to not need anyone adding new soccer events as I have all the data and importers. Hopefully this will save time to concentrate on other things. All soccer leagues on API-Football are supported for auto updates.

Posted: 09 Aug 2020 19:58

zag
Posts: 2,131
Joined: 2020-03-23

Ok first import is done, let me know if it looks OK

https://www.thesportsdb.com/season.php?l=4672&s=2019-2020
https://www.thesportsdb.com/season.php?l=4672&s=2020-2021

The new importer should recognize future as well as existing events, postponed events and re-scheduled events. All of which are updated automatically. This should also fix the livescore importer missing out late goals issue as the scores will be constantly updated when the importer runs a couple of times a day for each league

Playoffs and finals still need to be changed manually using the "round" field as there are just too any variations from league to league.

Posted: 09 Aug 2020 20:11
cydalby
Posts: 324
Joined: 2020-06-16

Great stuff! Thanks for the update

Posted: 09 Aug 2020 20:15
curswine
Posts: 336
Joined: 2020-06-17

I did enjoy adding the events en masse, but it was getting a bit too much for me over the past few weeks, so this is a great development. One thing I take away from it is that I learned a lot about world time zones.

Regarding the Slovak 19-20 season, the 30 games that were postponed due to Covid after the 7th March have been included in the import,

It also looks like matches that didn't occur on the same date were given separate rounds.

Posted: 09 Aug 2020 20:19

zag
Posts: 2,131
Joined: 2020-03-23

Yes I think the round thing is how the Slovak league works, they appear to have a playoff system for the European places and relegation that was all postponed. I think its correct, but at least it shows the importer can handle the Postponed events as well

EDIT: One thing I havent managed to nail down is local event times, but I might do some work in future on it. Anyone can edit the local time and local date if they wish manually. For now the importer just does the UTC time.

Posted: 09 Aug 2020 20:21

zag
Posts: 2,131
Joined: 2020-03-23

Does anyone else know of leagues that have already started?

Posted: 09 Aug 2020 20:56
curswine
Posts: 336
Joined: 2020-06-17

Pretty much, it starts off where the 12 teams play each other twice, then the league splits and the top six and bottom six play each other once more, but then there's further play-offs for European spots and relegation.

I'm aware time is a funny thing when it comes to programming, but could a timezone field be added to teams that adds or minuses from the UTC time for the home team? Even better would be if location coordinates could be used.

As for leagues which have started their 2020-2021 seasons, here is a quick list ...

Scotland 1
Russia 1, and 2
Serbia
Bosnia
Moldova
Brazil 1, 2, and 3
Nicaragua

zag
Posted: 09 Aug 2020 21:54

zag
Posts: 2,131
Joined: 2020-03-23

Cool I imported them all, looks good in testing...

Posted: 10 Aug 2020 12:35
curswine
Posts: 336
Joined: 2020-06-17

It doesn't look like Bosnia or Moldova's fixtures imported, but the rest seem fine to me.

Some other leagues that recently started new seasons ...
Belgium
Bulgaria
China
Mexico

And leagues currently playing a 2020 summer season ...
Norway 1, and 2
Sweden 1, 2, and 3
Iceland
Finland
Faroe Islands
Estonia
Latvia
Lithuania
Belarus
Japan 1, and 2
South Korea 1, and 2

zag
Posted: 10 Aug 2020 18:59

zag
Posts: 2,131
Joined: 2020-03-23

Thanks finding those 2020 only leagues is incredibly useful. I have imported all I can for those.


EDIT: Bosnia has no source data, not sure why...

Posted: 10 Aug 2020 20:30
curswine
Posts: 336
Joined: 2020-06-17

Does that mean the Bosnian league should be manually updated for the time being?

Also the Egyptian league is still playing the 19-20 season, but the matches are being imported as 20-21.

zag
Posted: 11 Aug 2020 17:54

zag
Posts: 2,131
Joined: 2020-03-23

Does that mean the Bosnian league should be manually updated for the time being?

Also the Egyptian league is still playing the 19-20 season, but the matches are being imported as 20-21.


No its fine, it will be automatic eventually just lacking source data too far in the future right now.

Egypt fixed also.

Posted: 11 Aug 2020 18:49

Ovokx
Posts: 1,132
Joined: 2020-06-17

[] Add event stats to soccer importer
[] Add events (red and yellow cards) to soccer importer

Any questions or requests let me know.


Will the importer cover all these events & stats?





Posted: 11 Aug 2020 21:54

zag
Posts: 2,131
Joined: 2020-03-23

Yes I think its possible

See below for the source stats list available for each event from API-Football

Available statistics
Shots on Goal
Shots off Goal
Shots insidebox
Shots outsidebox
Total Shots
Blocked Shots
Fouls
Corner Kicks
Offsides
Ball Possession
Yellow Cards
Red Cards
Goalkeeper Saves
Total passes
Passes accurate
Passes %


Ovokx
Posted: 12 Aug 2020 06:36
curswine
Posts: 336
Joined: 2020-06-17

I noticed Colombian league matches have been added, but to my knowledge the league won't be resuming for another two weeks.

Posted: 12 Aug 2020 08:59
curswine
Posts: 336
Joined: 2020-06-17

The Canadian Premier League has had teams that don't compete in the league added to it, they appear to be from the Canadian Championship instead which is a cup competition for qualification to continental tournaments.

The Canadian Premier League will be a bubble tournament this year on Prince Edward Island and is due to begin tomorrow.

Posted: 12 Aug 2020 15:02

Ovokx
Posts: 1,132
Joined: 2020-06-17

Yes I think its possible

See below for the source stats list available for each event from API-Football

Available statistics
Shots on Goal
Shots off Goal
Shots insidebox
Shots outsidebox
Total Shots
Blocked Shots
Fouls
Corner Kicks
Offsides
Ball Possession
Yellow Cards
Red Cards
Goalkeeper Saves
Total passes
Passes accurate
Passes %


Coooool! The only thing I miss in order to be able to add the event timeline is substitutions and assisits. I guess that this info will be also available, won't be?


Posted: 12 Aug 2020 20:54

zag
Posts: 2,131
Joined: 2020-03-23

The Canadian Premier League has had teams that don't compete in the league added to it, they appear to be from the Canadian Championship instead which is a cup competition for qualification to continental tournaments.

The Canadian Premier League will be a bubble tournament this year on Prince Edward Island and is due to begin tomorrow.


Please feel free to manually fix anything, sometimes even the API-Football API is out of date.

curswine
Posted: 12 Aug 2020 20:55

zag
Posts: 2,131
Joined: 2020-03-23

Coooool! The only thing I miss in order to be able to add the event timeline is substitutions and assisits. I guess that this info will be also available, won't be?


Yes I think its possible as well.

Posted: 12 Aug 2020 21:01
curswine
Posts: 336
Joined: 2020-06-17

The Canadian Premier League has had teams that don't compete in the league added to it, they appear to be from the Canadian Championship instead which is a cup competition for qualification to continental tournaments.

The Canadian Premier League will be a bubble tournament this year on Prince Edward Island and is due to begin tomorrow.

Please feel free to manually fix anything, sometimes even the API-Football API is out of date.


I've removed the teams and deleted the fixtures, could you change the API Football ID from 1319 to 1392, please?

zag
Posted: 14 Aug 2020 18:26
curswine
Posts: 336
Joined: 2020-06-17

Qatar, Saudi Arabia, and South Africa are all still playing their 19-20 season.

Also Uruguay are playing their 2020 season at the moment.

Posted: 14 Aug 2020 21:41

zag
Posts: 2,131
Joined: 2020-03-23

Qatar, Saudi Arabia, and South Africa are all still playing their 19-20 season.

Also Uruguay are playing their 2020 season at the moment.


Thanks fixed.

Just for info, if you edit the league the current season should be auto updated and the API-Football season ID found automatically.

I'm just waiting for the European leagues to kick off their 2020-2021 seasons and I will make it all automatic and update each league, but it all depends on those 2 fields being correct.

Posted: 15 Aug 2020 07:29
curswine
Posts: 336
Joined: 2020-06-17

That's great to know, I hate bothering you about such small things.

In a similar vein, the regionalliga nordost returns today and FSV Luckenwalde is lacking an ID, but I can't see that the league has been refreshed to include it, or some of the other newly promoted teams for the other regionalliga.





Who is Online?

In total there are 68 users online :: 3 registered, 0 hidden and 65 guests (based on users active over the past 5 minutes) Most users ever online was 424 on Fri Nov 10, 2017 9:02 pm

About Us

Discussion forum for TheSportsDB.com site and related topics

Rules

- Be Polite
- Respect other users
- Always post log files with issues
- Try to be helpful
- No Piracy discussion

Showing 0 to 25 (Total: 107)