advplyr / audiobookshelf

Self-hosted audiobook and podcast server
https://audiobookshelf.org
GNU General Public License v3.0
6.24k stars 437 forks source link

[Bug]: File path parsing adding special character if author name has a period #506

Closed alexpearce92 closed 4 days ago

alexpearce92 commented 2 years ago

Describe the issue

It looks like the parsing of the file path is adding special characters to the author's name on initial scan. A folder with the name "Rowling, J. K." will result in an author name of "J. Kf Rowling", where the f has an apostrophe. Changing the author folder to "J. K. Rowling" will result in the author name of "J. K.F Rowling" where again, the F will have an apostrophe.

File path ("J. K. Rowling"):

Screen Shot 2022-04-25 at 11 22 40 AM

File path ("Rowling, J. K."):

Screen Shot 2022-04-25 at 11 29 15 AM

Parsed author:

Screen Shot 2022-04-25 at 11 22 23 AM

Author tag:

Screen Shot 2022-04-25 at 11 27 18 AM

Current workaround is to not include the periods or just manually fix the metadata by editing the book.

Steps to reproduce the issue

  1. Create path "J. K. Rowling/My Book Name/Book.m4b" and "Rowling, J. K./My Book Name/Book.m4b"
  2. Edit book metadata in audiobookshelf for "My Book Name". Author's name will have the special character

Audiobookshelf version

v2.0.3

How are you running audiobookshelf?

Docker

advplyr commented 2 years ago

Is the directory you are mapping in docker from windows?

apearce-nov commented 2 years ago

Linux based Synology

nichwall commented 1 month ago

I think this may have been fixed at some point, I'm not able to reproduce this bug using ABS server 2.11.0 with Synology DSM 7. The scanner had been rewritten around server 2.4.0-2.6.0, so may have been at that point?