iftechfoundation / ifdb-suggestion-tracker

Bugs and feature requests for a future IFDB update
10 stars 0 forks source link

Search by file URL #353

Open curiousdannii opened 2 years ago

curiousdannii commented 2 years ago

I want to add open graph metadata to iplayif.com, and to do that I'd like to make use of IFDB. Could there be a way to search by file URL?

Including searching by zip URL and internal file name.

For my use a XML/JSON result would be ideal, but including it in the normal HTML search could be useful to people too.

dfabulich commented 2 years ago

Seems like it might be better to search by IFID?

curiousdannii commented 2 years ago

If I have a random non-blorbed storyfile there's likely no IFID that can be obtained from it.

dfabulich commented 2 years ago

Can you give an example of a story file that can’t have its IFID extracted? Zcode and Ulx files normally can.

curiousdannii commented 2 years ago

Hmm, I did forget about the legacy IFID methods. But even then, there's a lot of incomplete IFDB records.

Here's a Hugo one that should have a MD5 based IFID instead of whatever is listed which I don't think is even a valid IFID format (looks like the first 6 bytes of the file?): https://ifdb.org/viewgame?id=n8ngm7hx5z5e9csz (Actually they might be valid IFIDs... they seem to be what Babel produces, so the spec Babel is incorrect/incomplete?) Here's one that just doesn't have an IFID listed: https://ifdb.org/viewgame?id=04quwg97k5ng9nqd Here's a Zcode that should have an IFID for the port: https://ifdb.org/viewgame?id=kvw4jbopz0ly85jm Even something like Zork is missing a lot of versions from Zarf's obsessive catalog, including release 119 which is the play online version: https://ifdb.org/viewgame?id=0dbnusxunq7fw5ro

So as a backup, it would be great to be able to search for URLs too.