gotson / komga

Media server for comics/mangas/BDs/magazines/eBooks with API, OPDS and Kobo Sync support
https://komga.org
MIT License
4.03k stars 240 forks source link

Add multiple folders for library #1463

Closed plato79 closed 4 months ago

plato79 commented 6 months ago

Describe your suggested feature

Currently Komga only supports one folder per library. Is it possible to extend this to scan multiple folders per library? Like Plex does?

Other details

No response

Acknowledgements

gotson commented 6 months ago

What's the use case?

plato79 commented 6 months ago

I have multiple folders ( from different disks ) where I keep the Mangas. I have to create separate libraries for these right now. Though they all have same configuration ( for Manga ) so I want to keep it as simple as possible.

gotson commented 6 months ago

If you are using Docker you could mount them all under the same directory.

plato79 commented 6 months ago

Though it would be like this then:

/data/Manga/1 ( from disk1 ) /data/Manga/2 ( from disk2 )

Do you suggest then configure library for "/data/Manga" ? Will it successfully scan all the subfolders on both folders?

gotson commented 6 months ago

Do you suggest then configure library for "/data/Manga" ? Will it successfully scan all the subfolders on both folders?

yes, that should work

plato79 commented 6 months ago

Ugh. That means now I have to change folder structure and that means it'll scan those folders again and it'll take ages ( there are LOTS of manga in my folders ).

You don't suppose there's an easy way to modify folder names of the scanned titles are there ( other than directly via sqlite3 )?

If I have to do it that way, could you suggest which SQL queries I have to run to update folder from "/data/Manga/...." to "/data/Manga/1/...."

gotson commented 6 months ago

Ugh. That means now I have to change folder structure and that means it'll scan those folders again and it'll take ages ( there are LOTS of manga in my folders ).

if you have file hash enabled it should work

You don't suppose there's an easy way to modify folder names of the scanned titles are there ( other than directly via sqlite3 )?

there's no way to do that, except in DB, which is not supported, so to be done at your own risks

If I have to do it that way, could you suggest which SQL queries I have to run to update folder from "/data/Manga/...." to "/data/Manga/1/...."

i don't have time to look into what queries would be required, sorry