Follow

Oh god the AccuRIP database has an atrocious API. JSON? Lol. Give it magic numbers and it return __HEADERLESS__ binary or an HTML document in case of an error.
Headerless binary with a non-fixed unpredictable size.
Making users identify an HTML document from a binary is pure malice.

· · Web · 1 · 0 · 2

@lynne is the API over HTTP? If so, does it have a meaningful HTTP status code?

@wolf480pl Yes, and it also does correctly use the MIME type, but getting that out of libcurl is a struggle.

@lynne really?
I thought like the status code was the first thing anyone using any API would look at... it's surprising that libcurl makes it hard to get at...

@wolf480pl It also returns OK for 404 errors.
Its weird, but I'll figure it out.

Sign in to participate in the conversation
Parsee

A Mastodon instance for people interested in multimedia, codecs, assembly, SIMD, and the occasional weeb stuff.