Describe the feature/enhancement
My library REALLY didn't scan well. I keep all my audiobooks as single files (almost all .m4b, but there are a couple short stories that are just an mp3 file. Should probably convert them to .m4b too). I also greatly prefer not to create directories that are going to hold a single file.
This means that my directory structure is something like this:
- Brandon Sanderson
- Cosmere
- Stormlight Archive
- "Book 1 - The Way of Kings.m4b"
- "Book 2 - Words of Radiance.m4b"
- "Book 3 - Oathbringer.m4b"
- etc
- Mistborn
- "Book 1 - The Final Empire.m4b"
- "Book 2 - The Well of Ascension.m4b"
- etc
- "The Sunlit Man.m4b"
- "Warbreaker.m4b"
- Rechoners
- "Book 1 - Steelhear.m4b"
- "Book 2 - Firefight.m4b"
- "Book 3 - Calamity.m4b"
- "Snapshot.m4b"
- "The Frugal Wizards Handbook for Surviving Medieval England.m4b"
- [more authors]
- [single books]
The Scanner took a look at my folder structure for all of this and decided that Brandon Sanderson has a single book. Under the 'files' tab that book lists all 41 of Brandon Sanderson's books (and short stories) in my collection.
Eventually I figured out that putting .m4b files into folders pretty well sorted things out, but it would be REALLY nice to not need that.
The relevant function seems to be groupFileItemsIntoLibraryItemDirs in server/utils/scandir.js. Could that function be changed to be aware of .m4b files and return them as individual books always? That should get most people with a library like mine up and running faster.
Long term though it seems like a generally more flexible system would be useful; and possibly also adding the ability to modify the relationship between books and audio files after the fact in the web-ui. Or perhaps with a .config type file in folders that are intended to contain multiple files intended to be part of the same book.
Describe the feature/enhancement
My library REALLY didn't scan well. I keep all my audiobooks as single files (almost all .m4b, but there are a couple short stories that are just an mp3 file. Should probably convert them to .m4b too). I also greatly prefer not to create directories that are going to hold a single file.
This means that my directory structure is something like this:
The Scanner took a look at my folder structure for all of this and decided that Brandon Sanderson has a single book. Under the 'files' tab that book lists all 41 of Brandon Sanderson's books (and short stories) in my collection.
Eventually I figured out that putting .m4b files into folders pretty well sorted things out, but it would be REALLY nice to not need that.
The relevant function seems to be
groupFileItemsIntoLibraryItemDirsin server/utils/scandir.js. Could that function be changed to be aware of .m4b files and return them as individual books always? That should get most people with a library like mine up and running faster.Long term though it seems like a generally more flexible system would be useful; and possibly also adding the ability to modify the relationship between books and audio files after the fact in the web-ui. Or perhaps with a .config type file in folders that are intended to contain multiple files intended to be part of the same book.