ebullient / ttrpg-convert-cli

Utility to convert JSON data (for content you own) from 5etools or pf2etools into Obsidian-friendly Markdown.
https://www.ebullient.dev/projects/ttrpg-convert-cli/
Apache License 2.0
174 stars 37 forks source link

🐛 Problem importing MOT/MOT-NSS #328

Closed paulsnoops closed 6 months ago

paulsnoops commented 7 months ago

Below is an error printed in the console when trying to import data from MOT/MOT-NSS. After this error, it stops trying.

To be clear here is the contents of dm-sources.json: "from" has both "MOT" & "MOT-NSS" "full-source"/"book" has "MOT" "full-source"/"adventure" has "MOT-NSS"

If I remove "MOT" from "book" it will continue to import but you don't get the "book" content but will get the "adventure" content of it. Worth noting they use two different titles for these: The book is called Mythic Odysseys of Theros (MOT) The adventure is called Theros: No Silent Secret (MOT-NSS)

Error: Reading C:\path\5etools-mirror-1.github.io\data Unable to read source file at path C:\path\5etools-mirror-1.github.io\data\book\book-mot-nss.json (C:\path\5etools-mirror-1.github.io\data\book\book-mot-nss.json) errors reading data. Check the following:

It's saying unable to read book\book-mot-nss.json but as noted above dm-sources.json only contains "MOT" in the book section.

Using latest snapshot build. This is a new error, both parts "MOT" & "MOT-NSS" used to import fine.