iftechfoundation / ifarchive-unbox

IF Archive Unboxing service
https://unbox.ifarchive.org
MIT License
1 stars 2 forks source link

open= should match an exact file name before looking in subfolders etc #53

Closed curiousdannii closed 7 months ago

curiousdannii commented 7 months ago

From slack:

Hmm. This Ishmael.zip has two index.html at different levels, the top-level one of which is what you want to launch the game. But doing the obvious thing in IFDB causes Unbox to say "BadRequestError: Filename is not unique". Is there a way round this, with the things that you can do in an IFDB record? I didn't see one reading the unbox spec.

erkyrath commented 7 months ago

I like the idea of a "this is the file in the zip to launch" metadata line. Unless that's already supported, in which case we just have to document it on the ifarchive side!

unbox-startfile or something.

curiousdannii commented 7 months ago

The main issue is with IFDB, where we can't really know if it's an accurate filename or not. I think that looking for an exact match and then following the current heuristics should still be a good design though.

If the IFArchive has an accurate filename to launch it could just create the final URL itself...