EroticDevelopment / GuideMe

An interactive story viewer
MIT License
9 stars 4 forks source link

Ampersand not allowed in MediaDirectory #45

Open PlayfulGuy opened 1 year ago

PlayfulGuy commented 1 year ago

Ran across this issue in teases downloaded with the Milovana downloader. If the tease name includes an ampersand the filename and media folder get created properly, and the mediadirectory XML element gets created with an xml escaped ampersand like

Snakes & Ladders

The ampersand is actually a valid filename character (on windows at least) but must be escaped in XML. Guideme tries to use this name directly, instead of recognizing the xml escaped character, so no media files can be found. The same is true for a few other characters commonly used in tease titles, like the pipe symbol for instance. I've coded the downloader to work around that for now but I think this should be allowed since it is valid.