Site
Home / Forum / Developers / Leagues with Championsip/Relegation round

Leagues with Championsip/Relegation round


Posted: 24 Apr 2023 19:51
Greavel
Posts: 35
Joined: 2022-10-31

Some football(soccer) leagues have a regular season and a championship/relegation round. For example the Austrian Bundesliga (https://www.thesportsdb.com/season.php?l=4621&s=2022-2023) has 22 matchdays in regular season and afterwards goes into Championship and Relegation round.

At this league the regular season is over at the moment. In the API there is no way how I could recognize if a match is from regular season or already the championship/relegation round. The matchday just starts after the regular season again at r=01. This brings a lot of problems for me. Is there a way I could see currently if this is a match from regular season or championship/relegation round? If not, could you please add a mechanism/attribute where this is marked?

Posted: 24 Apr 2023 20:58
curswine
Posts: 870
Joined: 2020-06-17

I don't see how that's feasible for so many different leagues which employ that kind of system in their own ways.

Try adding something to your code that if the round number is smaller than the last then the league has split to identify, or past a certain date, or after so many matches have been played, quite a few ways to identify it.


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 2 (Total: 2)