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

🐛 InvalidPathException for external images #335

Closed digitalnoiz closed 6 months ago

digitalnoiz commented 6 months ago

When parsing homebrew content with external image urls, an error is occurring:

[ ? ERR] build(): Error processing 'Abyssal Hyena': java.nio.file.InvalidPathException: Illegal char <:> at index 5: https://raw.githubusercontent.com/TheGiddyLimit/homebrew/master/_img/FleeMortals/token/Abyssal Hyena.png
[ ? ERR] An error occurred: Illegal char <:> at index 5: https://raw.githubusercontent.com/TheGiddyLimit/homebrew/master/_img/FleeMortals/token/Abyssal Hyena.png.

example config.yaml:

---
full-source:
  homebrew:
  - D:\dev\_vtt\homebrew\creature\MCDM Productions; Flee, Mortals!.json
paths:
  compendium: compendium/
  rules: compendium/rules/

Configuration

ebullient commented 6 months ago

I have that homebrew source in tests, and I can't reproduce that issue..

If you pull latest (or snag the jar from the snapshot release), run with --debug --log and attach the result here

digitalnoiz commented 6 months ago

ttrpg-convert.out.txt

Used latest build from releases: ttrpg-convert version 299-SNAPSHOT Git commit: f16b438 Build time: 2024-02-12T03:29:40+0000