Thank you for sharing.
I tested it on my Android.
I got for each book a collection. Reason the file structure was:
title - author (calibre id).epub
Like: Raven - A.C.Writer (678).epub
But I had also a subfolder with author - title.epub.
The books came from various sources.
So it had to strip author like:
if author then
return author:gsub("%s+%((.-)$", "") -- Trim trailing spaces
It should be possible to show a Busy...please wait popup at the start, so you see that the process is ongoing.
BTW: some plus more of these features will be build in the core
see here:
https://github.com/koreader/koreader...ent-2690334308