mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-09-12 21:57:19 -04:00
getProposedDownloadFilePath looked for the book's audio file and fell back to the Books directory itself when it found none. That lookup matches on the product id appearing in the path, so it finds nothing for a library whose folder and file templates omit <id>, and nothing for a title marked downloaded whose files are not on this machine. Those PDFs landed in the library root, where they also shared one namespace and so could collide with each other. Fall back to the folder template instead - the same folder the audiobook itself would go in - and create it, since nothing else does on the PDF-only path. Also give MockLibraryBook a three-field version: ToVersionString formats to at least three fields, so the two-field default threw as soon as anything rendered a naming template for a mock book. Co-authored-by: rmcrackan <rmcrackan@gmail.com>