ZXDB based Open API

This is the place for general discussion and updates about the ZXDB Database. This forum is not specific to Spectrum Computing.
User avatar
kolbeck
Berk
Posts: 45
Joined: Mon Nov 13, 2017 9:04 pm

Re: ZXDB based Open API

Post by kolbeck » Sun May 20, 2018 6:57 am

druellan wrote:
Sat May 19, 2018 1:19 pm
Hi! Quick question. What's the meaning of the "availability" property?

I thought it was referring to the fact that the game is available (or has permission) to be downloaded.

But if you search for new games using:

https://api.zxinfo.dk/api/zxinfo/v2/sea ... =Available

The list is not the same as using:

https://api.zxinfo.dk/api/zxinfo/v2/sea ... e=SOFTWARE

Not sure if this is a mistake or I'm confused about the meaning of this property.

Thanks!
The two queries are not the same, first one only search for "SOFTWARE" where availability status is Available, the other one search for any "SOFTWARE.

For more info on values for availablity, look at https://github.com/zxdb/ZXDB and in the section: Enumeration tables

/Thomas
0 x
https://zxinfo.dk - another ZXDB frontend
https://api.zxinfo.dk/doc/ - ZXDB API for developers

User avatar
druellan
Microbot
Posts: 123
Joined: Tue Apr 03, 2018 6:19 pm
Location: Argentina
Contact:

Re: ZXDB based Open API

Post by druellan » Sun May 20, 2018 11:08 am

HI kolbeck. And yes, exactly, but I think I was not clear enough about the problem. Mind, that is not a problem with your API, but probably something related to data entry. I've added this here because I can't check this information directly.

Let's try this:

This game: https://zxinfo.dk/details/0034299
Is missing the "available" tag, but, is ready for download, so, unless I'm confused about what "available" should indicate, I think it is.

Following that interpretation, If you look at both queries, many games added after "Go Race!" should be available, and are not.
0 x
Y un buen día me puse a probar juegos de ZX Spectrum a ciegas en Youtube, terminó siendo:
📺 Retroarqueología en Youtube

User avatar
kolbeck
Berk
Posts: 45
Joined: Mon Nov 13, 2017 9:04 pm

Re: ZXDB based Open API

Post by kolbeck » Tue May 22, 2018 6:50 am

Hi

I vaguely remember this being discusses here before, maybe @Einar Saukas can remeber the thread with the discussion of "Availability"?

/Thomas
0 x
https://zxinfo.dk - another ZXDB frontend
https://api.zxinfo.dk/doc/ - ZXDB API for developers

Turrican
Berk
Posts: 6
Joined: Thu Apr 12, 2018 4:48 pm

Re: ZXDB based Open API

Post by Turrican » Sun Jun 03, 2018 11:29 pm

Hi kolbeck.
Sorry my ignorance but how can I take an image from a link?
For example: "cover_image":"/pub/sinclair/magazines/SinclairUser/Issue001/SUCover001.jpg" ?

Thank you.
0 x

User avatar
Einar Saukas
Manic Miner
Posts: 443
Joined: Wed Nov 15, 2017 2:48 pm

Re: ZXDB based Open API

Post by Einar Saukas » Sun Jun 03, 2018 11:42 pm

From ZXDB at GitHub:
Local file links starting with /pub/sinclair/ refer to content previously available at the original WorldOfSpectrum archive. These files are currently accessible from Archive.org mirror at https://archive.org/download/World_of_S ... /sinclair/

Local file links starting with /zxdb/sinclair/ refer to content added afterwards. These files are currently stored at https://spectrumcomputing.co.uk/zxdb/sinclair/
0 x

User avatar
Einar Saukas
Manic Miner
Posts: 443
Joined: Wed Nov 15, 2017 2:48 pm

Re: ZXDB based Open API

Post by Einar Saukas » Mon Jun 04, 2018 12:48 am

druellan wrote:
Sat May 19, 2018 1:19 pm
What's the meaning of the "availability" property?
Sorry, this property is outdated.

For the most part, it stores the availability status (M.I.A., available or denied) specifically for WoS, at the time Martijn stopped updating it. Afterwards, certain denied titles granted permission to SC, certain available titles revoked permission from WoS, certain M.I.A. titles were recovered and added to ZXDB, etc.

It's not just a matter of updating this information, because distribution permissions apply to specific sites, so this property doesn't make sense for ZXDB as a whole. I will need to reconsider this property later...
0 x

Turrican
Berk
Posts: 6
Joined: Thu Apr 12, 2018 4:48 pm

Re: ZXDB based Open API

Post by Turrican » Mon Jun 04, 2018 11:42 pm

Einar Saukas wrote:
Sun Jun 03, 2018 11:42 pm
From ZXDB at GitHub:
Local file links starting with /pub/sinclair/ refer to content previously available at the original WorldOfSpectrum archive. These files are currently accessible from Archive.org mirror at https://archive.org/download/World_of_S ... /sinclair/

Local file links starting with /zxdb/sinclair/ refer to content added afterwards. These files are currently stored at https://spectrumcomputing.co.uk/zxdb/sinclair/
Understood.
I´m making an Android app but with this way I can´t show the cover image of magazines so... :(
1 x

User avatar
druellan
Microbot
Posts: 123
Joined: Tue Apr 03, 2018 6:19 pm
Location: Argentina
Contact:

Re: ZXDB based Open API

Post by druellan » Tue Jun 05, 2018 1:17 am

Einar Saukas wrote:
Mon Jun 04, 2018 12:48 am
druellan wrote:
Sat May 19, 2018 1:19 pm
What's the meaning of the "availability" property?
It's not just a matter of updating this information, because distribution permissions apply to specific sites, so this property doesn't make sense for ZXDB as a whole. I will need to reconsider this property later...
Yeah. I can see the problem. I think the only property that might have direct relation to the ZXDB could be a MIA indicator.
0 x
Y un buen día me puse a probar juegos de ZX Spectrum a ciegas en Youtube, terminó siendo:
📺 Retroarqueología en Youtube

User avatar
Einar Saukas
Manic Miner
Posts: 443
Joined: Wed Nov 15, 2017 2:48 pm

Re: ZXDB based Open API

Post by Einar Saukas » Tue Jun 05, 2018 2:43 am

Turrican wrote:
Mon Jun 04, 2018 11:42 pm
Understood.
I´m making an Android app but with this way I can´t show the cover image of magazines so... :(
Now you just need to apply the rule I described.

For example:

"cover_image":"/pub/sinclair/magazines/SinclairUser/Issue001/SUCover001.jpg"

This file can be found at:

https://archive.org/download/World_of_S ... ver001.jpg
0 x

Turrican
Berk
Posts: 6
Joined: Thu Apr 12, 2018 4:48 pm

Re: ZXDB based Open API

Post by Turrican » Wed Jun 06, 2018 9:24 pm

Einar Saukas wrote:
Tue Jun 05, 2018 2:43 am
Turrican wrote:
Mon Jun 04, 2018 11:42 pm
Understood.
I´m making an Android app but with this way I can´t show the cover image of magazines so... :(
Now you just need to apply the rule I described.

For example:

"cover_image":"/pub/sinclair/magazines/SinclairUser/Issue001/SUCover001.jpg"

This file can be found at:

https://archive.org/download/World_of_S ... ver001.jpg
Ahhhh. Ok. Thanks.
0 x

Post Reply