gigobyte / HLTV

The unofficial HLTV Node.js API
MIT License
397 stars 106 forks source link

add additionalInfo to getMatch endpoint #442

Closed Drachenfalke12 closed 3 years ago

Drachenfalke12 commented 3 years ago

Hey sorry for bothering you again :)

In your last version of the API you had something like this:

"format": "Best of 3 (Online)", "additionalInfo": "* Group D", "event": { "name": "ESL Pro League Season 13", "id": 5553 },

But in the latest versions, this additionalInfo is missing. It would be a very nice feature for us. Thanks for your effort!!!

gigobyte commented 3 years ago

It's missing because it's random text. It has all kind of notes, so it doesn't make sense in the context of a CS match, only if you want to make a HLTV clone.

Drachenfalke12 commented 3 years ago

Hmmm I thought it was showing something like Lower bracket final or Playoffs round 1, well at least it was some nice extra information on how far the event is

gigobyte commented 3 years ago

Usually it does, but it also be a stream link or any other random text like "mousesports forfeit the match"

Drachenfalke12 commented 3 years ago

Hmm I see thats odd

gigobyte commented 3 years ago

I've added it as significance and it will only parse info about the match in the tournament (e.g. "Lower bracket final")