Site
Home / Forum / Developers / Api Search filename giving incorrect results

Api Search filename giving incorrect results


Posted: 25 Aug 2023 11:42
Happydonkey152

Posts: 2
Joined: 2023

Im trying to use Sportscanner to help update metadata for Formula 1. Everything is working fine for FP1,2,3, Qualifying and Races however there's an issue with Sprint and Sprint Shootout.

I have my naming setup to name the Sprint file Formula_1_2023-07-29_Belgian_Grand_Prix_Sprint
And the Sprint Shootout to Formula_1_2023-07-29_Belgian_Grand_Prix_Sprint_Shootout.

The issue is that the api request for Formula_1_2023-07-29_Belgian_Grand_Prix_Sprint returns both the Sprint and Sprint_Shootout in the json. I have a feeling that the metadata manager doesnt know how to deal with this so applies the first option in the returned json which is the Sprint_Shootout data for this item even when its named Formula_1_2023-07-29_Belgian_Grand_Prix_Sprint

Am I missing something or is there something that can make the filename more specific for getting the correct metadata for Sprint Races (Formula_1_2023-07-29_Belgian_Grand_Prix_Sprint)



Posted: 25 Aug 2023 17:27

zag


Posts: 3,527
Joined: 2020

Hmm yeh that would make sense as it looks for the string and both events contain that string.

I'm not quite sure what the answer is other than maybe renaming the events on the site to be unique.

Posted: 26 Aug 2023 10:09
Happydonkey152

Posts: 2
Joined: 2023

Yeah this was my issue. I think the only remedy is to rename them. Happy to spend the time doing it as its only the last few years there’s been sprint races. Just not sure how. Is there a way to request this?


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