advplyr / audiobookshelf-app

Mobile application for Audiobookshelf
https://audiobookshelf.org
GNU General Public License v3.0
1.34k stars 174 forks source link

Create better Downloaded Folder names to avoid Overlapping #194

Open superpawko opened 2 years ago

superpawko commented 2 years ago

Is your feature request related to a problem? Please describe.

Related to this issue: https://github.com/advplyr/audiobookshelf-app/issues/192 If there are two books with the same title or you have in your library two books but with different narrator they will overlap.

Describe the solution you'd like

Remove non-english characters from folder names, Add Author (limit to 2) and Narrator(limit to 1 ).

Examples:

%Authors - #%series_number %title (%narrator)

C.S. Lewis, Imme Dros - De wereld achter de kastdeur (by Sander de Heer) Annemie Bulté, Lionel D. - Terroristenjager (by Ronald Top) Colleen Hoover - Nooit meer (by Sophie Veldhuizen) J.K. Rowling - #_01 Harry Potter and the Philosopher's Stone (by Stephen Fry) J.K. Rowling - #_05 Harry Potter and the Order of the Phoenix (by Stephen Fry)

Describe alternatives you've considered

Normally I would add ID number somewhere, but ABS id are long. Maybe inserting a file which have adb id in it will speed something up.

Additional context

Add any other context or screenshots about the feature request here.

RobinD42 commented 1 year ago

I think I would prefer a nested folder structure for the downloads, like what is used on the server. At least something like Author/Series/num - Title/file(s) or Author/Title/file(s). That will make it easier to find what you're looking for with a file browser, or with other audiobook apps.

advplyr commented 1 year ago

I ended up going with /Author/Title for the next release.

superpawko commented 1 year ago

I ended up going with /Author/Title for the next release.

Unfortunately, It won't solve the problem of different narrator. :<

RobinD42 commented 1 year ago

How about duplicating the folder and file names as they are on on the server?

advplyr commented 1 year ago

Updated in v0.9.61-beta to use /Author/Title but will keep this open since there can be other conflicts. I suppose we could use the file names on the server at the time of download but there is also the issue of subfolders like CD folders to think about.

joouha commented 1 year ago

Hi - it would be nice to be able to select from a few options for this.

I'd really like to be able to revert to the old way of doing things (/Title/file.m4b), as this file structure is compatible with many other audiobook players for android (e.g. Voice, AudioAnchor, etc.)