Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Book file names not ordered lexicographically #999

Closed
TaakoMagnusen opened this issue Sep 21, 2022 · 4 comments
Closed

[Bug]: Book file names not ordered lexicographically #999

TaakoMagnusen opened this issue Sep 21, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@TaakoMagnusen
Copy link

Describe the issue

When a list of books is in lexicographic order in the underlying directory structure, they are not always ordered the same way in audiobookshelf

Steps to reproduce the issue

  1. Get audiobook comprised of many files
  2. name them in the following order
    BOOKNAME_01_01_01.mp3
    BOOKNAME_01_01_02.mp3
    BOOKNAME_01_02_01.mp3
    BOOKNAME_01_02_02.mp3
  3. Import book into audiobookshelf
  4. The order of the files is imported in the following way
    BOOKNAME_01_01_01.mp3
    BOOKNAME_01_02_01.mp3
    BOOKNAME_01_01_02.mp3
    BOOKNAME_01_02_02.mp3

Audiobookshelf version

v2.1.5

How are you running audiobookshelf?

Docker

@TaakoMagnusen TaakoMagnusen added the bug Something isn't working label Sep 21, 2022
@TaakoMagnusen
Copy link
Author

TaakoMagnusen commented Sep 21, 2022

Attaching image of this phenomena for stormlight series book 1
Screen Shot 2022-09-21 at 3 47 08 PM

In this the first number (01) indicates the first book, the middle number (01-05) indicate the way the audiobook is broken into major sections, and the final number indicates the part of that major section. It should always increase starting with the final number, not the middle one.

@advplyr
Copy link
Owner

advplyr commented Sep 21, 2022

Press Manage Tracks and see how the filename is being parsed. The track number and disc number attempt to get parsed and that determines the order of the tracks

@TaakoMagnusen
Copy link
Author

awesome! I just went to Manage Tracks, clicked the Filename header to sort by ascending, and saved the tracklist; that was so easy!

Incredible UI, great app, very excited about this amazing new self-hosted tool!

@TaakoMagnusen
Copy link
Author

TaakoMagnusen commented Sep 21, 2022

the manage tracks didn't really tell me much about how the track number and disc number were parsed from the file name, i think the file metadata must be screwy, but that's on me/the files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants