Suwayomi / Suwayomi-Server

A rewrite of Tachiyomi for the Desktop
Mozilla Public License 2.0
3.93k stars 201 forks source link

[Feature Request] Download path customization #825

Open 264-bit opened 8 months ago

264-bit commented 8 months ago

What feature should be added to Suwayomi?

Currently, Suwayomi is downloading manga to <downloadPath>/mangas/<sourceName>/<mangaName>. I would like to simplify this to just <downloadPath>/<mangaName>. It would be nice to be able to generally customize the download path.

Why/Project's Benefit/Existing Problem

Helps compatibility with existing manga libraries/manga servers like Komga/Kavita.

Robonau commented 8 months ago

not likely to happen, you should be able to have a similar effect using folder linking though

Fefe-Hern commented 7 months ago

Just a simple toggle or variable that removes the source directory name, while retaining the rest may suffice. I've searched thru the Download sections of code but couldn't find anything regarding the directory. I did see DirName.kt GetMangeDir and updateMangaDownloadDir

A check for whether or not to include these dirs, either by emptying the string (and preceding slash) or an alternative path based on setting, would be great.

I'm unsure if it uses the directory pathing for anything else.

As of now, my workaround will be adding all the source groups I use as "library paths" to other systems.

taos15 commented 7 months ago

Just a simple toggle or variable that removes the source directory name, while retaining the rest may suffice.

I've searched thru the Download sections of code but couldn't find anything regarding the directory. I did see DirName.kt GetMangeDir and updateMangaDownloadDir

A check for whether or not to include these dirs, either by emptying the string (and preceding slash) or an alternative path based on setting, would be great.

I'm unsure if it uses the directory pathing for anything else.

As of now, my workaround will be adding all the source groups I use as "library paths" to other systems.

I have the same problem. As of right now I just have a rsync with flags for update script that copy from /download/tachidesk/{source/*to /download/manga/* just use rsync /*/* as the source path, where the first * is the source directory name.

The problem with implementing that at the application level is that one will need to change a lot of logic to make sure your source remember where they files it downloaded are, if you have 2 manga from 2 different source (old source that you migrated) they probably use different naming schema and you will have a mess with duplicate chapters. This issue will be blocked by another issues that standardize manga and chapters name.