Site
Home / Forum / General Discussion / [FEATURES] Site progress and new features

[FEATURES] Site progress and new features


Posted: 21 Sep 2020 17:03
cydalby
Posts: 335
Joined: 2020-06-16

Amazing, thanks for this! And the ability to add scorers!

Posted: 21 Sep 2020 18:54

zag
Posts: 3,311
Joined: 2020-03-23

I'd probably hold off adding too much as I might change the way scorers work to the new lineup code.

That would give us the option for red and yellow cards as well as more match timeline events.

Still experimenting....

Posted: 21 Sep 2020 19:04

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

Coooool! Another step forward to achieve this!



TY!

zag
Posted: 26 Sep 2020 18:44

zag
Posts: 3,311
Joined: 2020-03-23

I figured it was much easier and more expansive to allow any timeline event to be added to an event such as a goal, touchdown, yellow card or home run etc. So I added a similar feature for event timelines that should be used going forward. I will see what I can do about importing the older format goal events and leveraging the 3rd part api's for more events.

- Added timeline events

EDIT: Please let me know if you need more event types to be added.

Example: https://www.thesportsdb.com/event/1032712

Ovokx
Posted: 26 Sep 2020 18:50

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

Added yellow card to Bruno Fernandes (22') in Brighton vs Man Utd, but looks like a goal:



Posted: 26 Sep 2020 19:23

zag
Posts: 3,311
Joined: 2020-03-23

Thanks fixed a few more things including adding icons to timeline events

Ovokx
Posted: 26 Sep 2020 22:22

zag
Posts: 3,311
Joined: 2020-03-23

Big new feature I hope that will save time in the future....

- Artwork Mapping page and backend

I've finally got back onto setting up the artwork mapping feature so we don't always have to upload new artwork each season. Eventually new events will "auto discover" their artwork in the future I hope. For now we need to start building the library...

You can access the new feature by clicking the little world icon on the league page next to the league name in the top left. It should give you a list of all event names in a season and an indication of which artwork has been mapped.

All event artwork uploaded from now on will map to an event name. So the library will build as we all upload. No action is really needed other than uploading artwork. As always please keep artwork generic without season names unless it is a final or special event.

NBA Artwork Mappings
https://www.thesportsdb.com/artwork.php?l=4387

Ovokx, curswine
Posted: 26 Sep 2020 22:58
cydalby
Posts: 335
Joined: 2020-06-16

I figured it was much easier and more expansive to allow any timeline event to be added to an event such as a goal, touchdown, yellow card or home run etc. So I added a similar feature for event timelines that should be used going forward. I will see what I can do about importing the older format goal events and leveraging the 3rd part api's for more events.

- Added timeline events

EDIT: Please let me know if you need more event types to be added.

Example: https://www.thesportsdb.com/event/1032712



Looks great!

Is there a reason this data doesn’t come through in the api?

Posted: 27 Sep 2020 09:14

zag
Posts: 3,311
Joined: 2020-03-23

Looks great!

Is there a reason this data doesn’t come through in the api?


Yeh I would need to write an importer for it from the new API-Football site. that will be the last part of the feature. I wanted to allow all the manual ways of doing things first, then I will look at automating it.

Of course its not just soccer, but this feature will work with any team sport so quite useful I think.

Posted: 27 Sep 2020 09:55

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

Big new feature I hope that will save time in the future....

- Artwork Mapping page and backend

I've finally got back onto setting up the artwork mapping feature so we don't always have to upload new artwork each season. Eventually new events will "auto discover" their artwork in the future I hope. For now we need to start building the library...

You can access the new feature by clicking the little world icon on the league page next to the league name in the top left. It should give you a list of all event names in a season and an indication of which artwork has been mapped.

All event artwork uploaded from now on will map to an event name. So the library will build as we all upload. No action is really needed other than uploading artwork. As always please keep artwork generic without season names unless it is a final or special event.

NBA Artwork Mappings
https://www.thesportsdb.com/artwork.php?l=4387


If I understood it correctly, from now on, if we upload a fanart, it will be used for next events with the same name, right? If so, I have some doubts about:

- Will they be used only for the league where is uploaded?
- Some leagues has different designs (NBA for example has different ones for pre-season, regular season, playoffs & finals). Can be add a "Flag" on the upload page in order to only display that art for that event?
- If we upload a new image to an already mapped one, will it be remapped with the newest one?

Thanks for clarifying!

Posted: 27 Sep 2020 10:17

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

Regarding substitutions, now we can add them on the timeline and the line-ups. Zag, what do you think that only add them on the timeline and keep line-ups with only the starting one? I think it will be more accurated

Posted: 27 Sep 2020 11:29

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

- Added timeline events

EDIT: Please let me know if you need more event types to be added.


For NFL games, "Field Goal" is missing

PS: Also the icon for "Touchdown" is missing. Example: https://www.thesportsdb.com/event/680015



Posted: 27 Sep 2020 13:13
cydalby
Posts: 335
Joined: 2020-06-16

Looks great!

Is there a reason this data doesn’t come through in the api?

Yeh I would need to write an importer for it from the new API-Football site. that will be the last part of the feature. I wanted to allow all the manual ways of doing things first, then I will look at automating it.

Of course its not just soccer, but this feature will work with any team sport so quite useful I think.


Sorry I'll rephrase, the data doesn't come through on the eventlookup/eventsbyday api.


Posted: 27 Sep 2020 14:43

zag
Posts: 3,311
Joined: 2020-03-23

Sorry I'll rephrase, the data doesn't come through on the eventlookup/eventsbyday api.


Ahh yes thats the very last thing to fix, need to do a few things before we can expose the timeline on the api.

cydalby
Posted: 27 Sep 2020 18:55

zag
Posts: 3,311
Joined: 2020-03-23

- Batch imported the last 3 years of artwork into the mappings table.

Example: F1
https://www.thesportsdb.com/artwork.php?l=4370

Posted: 27 Sep 2020 19:57

zag
Posts: 3,311
Joined: 2020-03-23

- V1 API method to list event timeline (Goals, Yellow cards, Red Cards, Assists etc)

https://www.thesportsdb.com/api/v1/json/APIKEY/lookuptimeline.php?id=1032718

This is Patreon only but should list all timeline for an event.

Posted: 27 Sep 2020 21:12
cydalby
Posts: 335
Joined: 2020-06-16

- V1 API method to list event timeline (Goals, Yellow cards, Red Cards, Assists etc)

https://www.thesportsdb.com/api/v1/json/APIKEY/lookuptimeline.php?id=1032718

This is Patreon only but should list all timeline for an event.


Working great!


zag
Posted: 28 Sep 2020 09:28
curswine
Posts: 863
Joined: 2020-06-17

I almost missed the news about the artwork mapping becoming functional. That's some great progress, I'm going to try and come up with a script that will upload all the leagues I've made a template for.

zag
Posted: 28 Sep 2020 11:32
cydalby
Posts: 335
Joined: 2020-06-16

Could we potentially add “Injury break” and “Missed Penalty” to the timeline events?

Posted: 28 Sep 2020 18:53

zag
Posts: 3,311
Joined: 2020-03-23

I almost missed the news about the artwork mapping becoming functional. That's some great progress, I'm going to try and come up with a script that will upload all the leagues I've made a template for.

At the moment its still classed as a "backend" feature but its slowly building up on content as you and others upload. The artwork page should show progress and you can probably work out there are a lot of combinations already so any kind of scripting would be really useful Once its done, then we have it forever or until someone wishes to change the design.

The idea eventually is to have a single moderator button to 'apply artwork' to a new season automatically. It should be pretty easy to implement. This current season will be all about building up the artwork map I guess.

curswine
Posted: 28 Sep 2020 20:08
curswine
Posts: 863
Joined: 2020-06-17

I almost missed the news about the artwork mapping becoming functional. That's some great progress, I'm going to try and come up with a script that will upload all the leagues I've made a template for.

At the moment its still classed as a "backend" feature but its slowly building up on content as you and others upload. The artwork page should show progress and you can probably work out there are a lot of combinations already so any kind of scripting would be really useful Once its done, then we have it forever or until someone wishes to change the design.

The idea eventually is to have a single moderator button to 'apply artwork' to a new season automatically. It should be pretty easy to implement. This current season will be all about building up the artwork map I guess.


Scotland, Denmark, Russia, Switzerland, and Belgium thumbs have all been added to the DB now.

Just a question of making more templates now.


Posted: 01 Oct 2020 03:22

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

- Added timeline events

EDIT: Please let me know if you need more event types to be added.


For NFL timeline games, "Field Goal" is missing

PS: Also the icon for "Touchdown" is missing. Example: https://www.thesportsdb.com/event/680015



reminder

zag
Posted: 01 Oct 2020 21:11

zag
Posts: 3,311
Joined: 2020-03-23

- New timeline events as requested
- New timeline icons for all events
- New hopefully more modern site Logo!



Ovokx
Posted: 01 Oct 2020 21:32
cydalby
Posts: 335
Joined: 2020-06-16

Great thanks.

Sorry I didn’t request earlier but could we add something like “penalty shootout” to the time field for timeline

Posted: 01 Oct 2020 21:48

zag
Posts: 3,311
Joined: 2020-03-23

Sure added


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 325 to 350 (Total: 452)