[Bug]: duplicate series being generated when using quick match #1386

Closed
opened 2026-04-24 23:43:31 +02:00 by adam · 17 comments
Owner

Originally created by @dtayme on GitHub (Sep 16, 2023).

Describe the issue

When updating audiobook meta data using "quick match" when the series tag is populated a new entry in the series table is created. This creates multiple entries in the series view with 1 book each in those series.

Steps to reproduce the issue

  1. Fresh docker install
  2. Create a new library
  3. Run a scan on existing audiobooks (All books in root directory M4B Files generated from OpenAudible)
  4. Edit an audiobook and select "quick match"
  5. Each subsequent book in the series when using "quick match" will create a duplicate series entry.

Audiobookshelf version

2.4.2

How are you running audiobookshelf?

Docker

Originally created by @dtayme on GitHub (Sep 16, 2023). ### Describe the issue When updating audiobook meta data using "quick match" when the series tag is populated a new entry in the series table is created. This creates multiple entries in the series view with 1 book each in those series. ### Steps to reproduce the issue 1. Fresh docker install 2. Create a new library 3. Run a scan on existing audiobooks (All books in root directory M4B Files generated from OpenAudible) 4. Edit an audiobook and select "quick match" 5. Each subsequent book in the series when using "quick match" will create a duplicate series entry. ### Audiobookshelf version 2.4.2 ### How are you running audiobookshelf? Docker
adam added the bug label 2026-04-24 23:43:32 +02:00
adam closed this issue 2026-04-24 23:43:32 +02:00
Author
Owner

@WarHawk8080 commented on GitHub (Sep 16, 2023):

I concur...same problem, will also break them if I manually go in and match the book names later on

@WarHawk8080 commented on GitHub (Sep 16, 2023): I concur...same problem, will also break them if I manually go in and match the book names later on
Author
Owner

@JohanPotgieter commented on GitHub (Sep 16, 2023):

I tried deleting all but one of the series. It will show the show however I can't select it. Other times it will not list any series when I start typing.

@JohanPotgieter commented on GitHub (Sep 16, 2023): I tried deleting all but one of the series. It will show the show however I can't select it. Other times it will not list any series when I start typing.
Author
Owner

@The-Ducktor commented on GitHub (Sep 16, 2023):

same issue

@The-Ducktor commented on GitHub (Sep 16, 2023): same issue
Author
Owner

@Toblun commented on GitHub (Sep 16, 2023):

Same issue if you us manual match, but you also get duplicate author with the same name :(
Skärmbild 2023-09-16 140726

@Toblun commented on GitHub (Sep 16, 2023): Same issue if you us manual match, but you also get duplicate author with the same name :( ![Skärmbild 2023-09-16 140726](https://github.com/advplyr/audiobookshelf/assets/51099399/57b90683-e3fc-41e6-b4aa-74ef7f5a97d0)
Author
Owner

@hobesman commented on GitHub (Sep 16, 2023):

Same here. This makes the curater in me cringe. I think I'll hold off adding new books/matching existing books as much possible until this is sorted out.

@hobesman commented on GitHub (Sep 16, 2023): Same here. This makes the curater in me cringe. I think I'll hold off adding new books/matching existing books as much possible until this is sorted out.
Author
Owner

@LacksPeopleSkills commented on GitHub (Sep 16, 2023):

I am seeing the same thing. I opened another bug report on series with commas in their names getting split into multiple series, so i have been tinkering with running matches and i can't find a rhyme or reason why some are getting duplicated. But I also seeing them fix themselves after a little while in some occurrences but not others.

@LacksPeopleSkills commented on GitHub (Sep 16, 2023): I am seeing the same thing. I opened another bug report on series with commas in their names getting split into multiple series, so i have been tinkering with running matches and i can't find a rhyme or reason why some are getting duplicated. But I also seeing them fix themselves after a little while in some occurrences but not others.
Author
Owner

@rikuddo91 commented on GitHub (Sep 17, 2023):

Can confirm, having similar issue. Matched all the book in same series with similar path, but still get each book in its own series. Trying to manually add it to same series by editing doesn't help with that.
Downgrading to 2.4.0 seems to have resolved this issue (for now).

@rikuddo91 commented on GitHub (Sep 17, 2023): Can confirm, having similar issue. Matched all the book in same series with similar path, but still get each book in its own series. Trying to manually add it to same series by editing doesn't help with that. Downgrading to 2.4.0 seems to have resolved this issue (for now).
Author
Owner

@Mavarius1989 commented on GitHub (Sep 17, 2023):

When you edit the audiobook and delete the other, you can select the right one qafter that out of the drop down menu.But even if there are no duplicates under "authors-menu", there are multiple ones when you edit a title in the drop down menu.
Screenshot 2023-09-17 173427

@Mavarius1989 commented on GitHub (Sep 17, 2023): When you edit the audiobook and delete the other, you can select the right one qafter that out of the drop down menu.But even if there are no duplicates under "authors-menu", there are multiple ones when you edit a title in the drop down menu. ![Screenshot 2023-09-17 173427](https://github.com/advplyr/audiobookshelf/assets/98676965/cf0ee9d8-7e8c-4a3d-ba67-711539f025ee)
Author
Owner

@Savisthorv commented on GitHub (Sep 17, 2023):

Was just about to comment the same, glad it is awaiting release, can't wait to tidy this up. Thanks!

@Savisthorv commented on GitHub (Sep 17, 2023): Was just about to comment the same, glad it is awaiting release, can't wait to tidy this up. Thanks!
Author
Owner

@hobesman commented on GitHub (Sep 17, 2023):

@advplyr will the planned fix address existing duplicates or just future creation of duplicates?

@hobesman commented on GitHub (Sep 17, 2023): @advplyr will the planned fix address existing duplicates or just future creation of duplicates?
Author
Owner

@advplyr commented on GitHub (Sep 18, 2023):

@hobesman Unfortunately not. These can be cleaned up by using the library search and bulk edit to remove all series/authors affected. After removing re-add them. It's not ideal but writing a script to clean those on startup would take some time.

@advplyr commented on GitHub (Sep 18, 2023): @hobesman Unfortunately not. These can be cleaned up by using the library search and bulk edit to remove all series/authors affected. After removing re-add them. It's not ideal but writing a script to clean those on startup would take some time.
Author
Owner

@advplyr commented on GitHub (Sep 18, 2023):

Fixed in v2.4.3

@advplyr commented on GitHub (Sep 18, 2023): Fixed in [v2.4.3](https://github.com/advplyr/audiobookshelf/releases/tag/v2.4.3)
Author
Owner

@hobesman commented on GitHub (Sep 18, 2023):

@hobesman Unfortunately not. These can be cleaned up by using the library search and bulk edit to remove all series/authors affected. After removing re-add them. It's not ideal but writing a script to clean those on startup would take some time.

I'm not sure how. If I try to filter by that author, I get nothing. Should I tag a random book with that author, then remove the book and re-add it? I had already retagged the orphans to go under the primary instance of that author.

Screenshot_20230917-154937_Chrome

@hobesman commented on GitHub (Sep 18, 2023): > @hobesman Unfortunately not. These can be cleaned up by using the library search and bulk edit to remove all series/authors affected. After removing re-add them. It's not ideal but writing a script to clean those on startup would take some time. I'm not sure how. If I try to filter by that author, I get nothing. Should I tag a random book with that author, then remove the book and re-add it? I had already retagged the orphans to go under the primary instance of that author. ![Screenshot_20230917-154937_Chrome](https://github.com/advplyr/audiobookshelf/assets/29721765/3653d4e0-baaa-48bc-b350-9a9833d43c04)
Author
Owner

@advplyr commented on GitHub (Sep 18, 2023):

@hobesman Type the author name in the search at the top and press enter

@advplyr commented on GitHub (Sep 18, 2023): @hobesman Type the author name in the search at the top and press enter
Author
Owner

@hobesman commented on GitHub (Sep 18, 2023):

It looks like that doesn't work anyways. I switched a book from the "correct" author to one of the duplicates, then deleted that book from the db. It didn't remove the author from the search results. Now I'm scanning to re-add the deleted book but in the meantime the orphaned author entry remains. (I had 4 before and 4 after deleting the book.)

Screenshot_20230917-161557_Chrome

Are you saying I have to remove everything from Brandon Mull from the library in order to remove the empty references?

@hobesman commented on GitHub (Sep 18, 2023): It looks like that doesn't work anyways. I switched a book from the "correct" author to one of the duplicates, then deleted that book from the db. It didn't remove the author from the search results. Now I'm scanning to re-add the deleted book but in the meantime the orphaned author entry remains. (I had 4 before and 4 after deleting the book.) ![Screenshot_20230917-161557_Chrome](https://github.com/advplyr/audiobookshelf/assets/29721765/200e6416-bd8f-4e2c-9d9e-0780328a91af) Are you saying I have to remove everything from Brandon Mull from the library in order to remove the empty references?
Author
Owner

@advplyr commented on GitHub (Sep 19, 2023):

Can you try renaming one of the empty authors and saving, then naming it back to the original name. That should remove the duplicate. I'll add a delete button on the author modal so these can be cleaned up in the next release easier.

The reason I didn't set it up to automatically remove empty authors is because you may have manually filled out some metadata on the author and it would get removed. I do have some logic in place for the scanner to remove authors with no books and no additional metadata but that would be difficult to trigger for this case.

@advplyr commented on GitHub (Sep 19, 2023): Can you try renaming one of the empty authors and saving, then naming it back to the original name. That should remove the duplicate. I'll add a delete button on the author modal so these can be cleaned up in the next release easier. The reason I didn't set it up to automatically remove empty authors is because you may have manually filled out some metadata on the author and it would get removed. I do have some logic in place for the scanner to remove authors with no books and no additional metadata but that would be difficult to trigger for this case.
Author
Owner

@hobesman commented on GitHub (Sep 20, 2023):

That worked. Thanks!

@hobesman commented on GitHub (Sep 20, 2023): That worked. Thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#1386