For instance, DB entry #1 'Licence to kill' has four Front cover entries :
/zxdb/sinclair/entries/0000001/LicenceToKill(ConLicenciaParaMatar)(Musical1SA)_Front.jpg
/zxdb/sinclair/entries/0000001/LicenceToKill(HitSquad).jpg
/pub/sinclair/games-inlays/Rereleases/l/LicenceToKill(ConLicenciaParaMatar)(ErbeSoftwareS.A.).jpg
/zxdb/sinclair/entries/0000001/LicenceToKill.jpg
The three zxdb paths are prefixed with spectrumcomputing.co.uk, the third one is a complicated path beginning with archive.org. How does one know which path to prefix? Is it just whether it starts with zxdb?
Edit - The third image has a full path of 'https://archive.org/download/World_of_S ... eS.A.).jpg'. Is 'pub' replaced with that long path ?
How do you know where a front cover image is stored?
Moderator: druellan
- bluespikey
- Manic Miner
- Posts: 964
- Joined: Tue Jun 30, 2020 3:54 pm
- Einar Saukas
- Bugaboo
- Posts: 3169
- Joined: Wed Nov 15, 2017 2:48 pm
Re: How do you know where a front cover image is stored?
That's explained in the ZXDB documentation under section "ADDITIONAL DETAILS ":
https://github.com/zxdb/ZXDB
https://github.com/zxdb/ZXDB
- bluespikey
- Manic Miner
- Posts: 964
- Joined: Tue Jun 30, 2020 3:54 pm
Re: How do you know where a front cover image is stored?
That's just what I needed, thank you very much.
Re: How do you know where a front cover image is stored?
I was trying to learn how to connect to zxinfo.dk to display an image from the game, and ended up doing this:
I'm not a developer (as you can probably tell ) so if anyone has a better way then let me know.
Code: Select all
// Check if in-game screen URL starts /zxdb/sinclair/ or /pub/sinclair/ and set imageUrl prefix accordingly
if (imageUrl[1] == 'z') {
imageDisplay.setAttribute('src', "https://zxinfo.dk/media" + imageUrl);
}
else {
imageDisplay.setAttribute('src', "https://archive.org/download/World_of_Spectrum_June_2017_Mirror/World%20of%20Spectrum%20June%202017%20Mirror.zip/World%20of%20Spectrum%20June%202017%20Mirror/" + imageUrl.slice(5));
}
My Speccy site: thirdharmoniser.com