Closed rjmorris closed 5 months ago
I think this should be fixed in the repo and I'll ship a version soon that includes it! The issue has to do with squares that have an officially blank solution, which .puz doesn't support, but I've got a workaround in place.
Great! Thanks for your work on this project!
Using the latest release of xword-dl (2023.12.2), I tried to download and parse today's NY Times crossword (2023-12-17), but I got the following error:
I didn't have any problems with the previous two days' puzzles.
I pulled the puzzle's JSON from the NY Times site and looked for the source of the error. I found 7 squares that would have caused the exception. Here's one example:
I'm guessing this is related to rebus answers. It looks like the source code doesn't anticipate a
moreAnswers
key here, instead expecting ananswer
key. For comparison, here's another square in the JSON that doesn't raise an exception:I tried to revise the code to handle the
moreAnswers
case, but all my attempts led to an invalid .puz file (as reported by cursewords when I tried to open my .puz), and I didn't try to investigate further.I'd rather not post the puzzle's JSON here since it's behind a paywall, but if there's anything else I can provide to help, let me know.