komga icon indicating copy to clipboard operation
komga copied to clipboard

Add multiple folders for library

Open plato79 opened this issue 1 year ago • 7 comments

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

  • [X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
  • [X] I have written a short but informative title.
  • [X] I have updated the app to the latest version.
  • [X] I will fill out all of the requested information in this form.

plato79 avatar Apr 05 '24 21:04 plato79

What's the use case?

gotson avatar Apr 15 '24 07:04 gotson

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.

plato79 avatar Apr 15 '24 08:04 plato79

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

gotson avatar Apr 15 '24 08:04 gotson

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?

plato79 avatar Apr 15 '24 08:04 plato79

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

yes, that should work

gotson avatar Apr 15 '24 08:04 gotson

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/...."

plato79 avatar Apr 15 '24 08:04 plato79

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

gotson avatar Apr 15 '24 09:04 gotson