[Bug]: Series Sequence Info added to Series tag when book is readded #875

Closed
opened 2026-02-20 01:11:45 -05:00 by deekerman · 5 comments
Owner

Originally created by @ceramicwhite on GitHub (Jan 4, 2023).

Describe the issue

If a book has been removed from ABS and then imported again with the metadata.abs, the Series and Sequence are concatenated on import.

;ABMETADATA2
....
series=Mountain Man #1-3

Screenshot 2023-01-04 121351

Steps to reproduce the issue

  1. Remove book that's part of a series and has a sequence and no embedded ID3 tags (settings dependent)
  2. Scan Library to reimport book (note I store metadata.abs with titles)

Audiobookshelf version

v2.2.11

How are you running audiobookshelf?

Docker

Originally created by @ceramicwhite on GitHub (Jan 4, 2023). ### Describe the issue If a book has been removed from ABS and then imported again with the `metadata.abs`, the Series and Sequence are concatenated on import. ``` ;ABMETADATA2 .... series=Mountain Man #1-3 ``` ![Screenshot 2023-01-04 121351](https://user-images.githubusercontent.com/7660824/210642966-a35e7431-3ec0-43fa-91af-ac729c52102d.png) ### Steps to reproduce the issue 1. Remove book that's part of a series and has a sequence and no embedded ID3 tags (settings dependent) 2. Scan Library to reimport book (note I store `metadata.abs` with titles) ### Audiobookshelf version v2.2.11 ### How are you running audiobookshelf? Docker
deekerman 2026-02-20 01:11:45 -05:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@ceramicwhite commented on GitHub (Jan 5, 2023):

@advplyr I tried master and didn't seem to fix the problem. Also after removing the book if I do a scan of library it gets cancelled on master:
DEBUG: [Server] Cancel scan lib_mks5yjgco4mckb9jyq (SocketAuthority.js:200)

@ceramicwhite commented on GitHub (Jan 5, 2023): @advplyr I tried master and didn't seem to fix the problem. Also after removing the book if I do a scan of library it gets cancelled on master: `DEBUG: [Server] Cancel scan lib_mks5yjgco4mckb9jyq (SocketAuthority.js:200)`
Author
Owner

@advplyr commented on GitHub (Jan 6, 2023):

I just tested and it is working for me.

image

For this test I went and edited the metadata.abs in one of my book folders.

;ABMETADATA2
#audiobookshelf v2.2.11

media=book
title=A Test Book
subtitle=
authors=Test Author
narrators=
publishedYear=2019
publisher=
isbn=
asin=
language=
genres=Fantasy
series=Mountain Man #1-3
explicit=N

After saving that I go press edit on the book in Abs and press the "Re-Scan" button. The series gets updated correctly.

@advplyr commented on GitHub (Jan 6, 2023): I just tested and it is working for me. ![image](https://user-images.githubusercontent.com/67830747/211115317-c77034ac-36df-4f9b-b218-a52922d08371.png) For this test I went and edited the `metadata.abs` in one of my book folders. ``` ;ABMETADATA2 #audiobookshelf v2.2.11 media=book title=A Test Book subtitle= authors=Test Author narrators= publishedYear=2019 publisher= isbn= asin= language= genres=Fantasy series=Mountain Man #1-3 explicit=N ``` After saving that I go press edit on the book in Abs and press the "Re-Scan" button. The series gets updated correctly.
Author
Owner

@ceramicwhite commented on GitHub (Jan 6, 2023):

@advplyr Oh I was looking at some other sequences I had:
series=Star Wars #39 Kids
series=Expeditionary Force #10.8 - Mavericks: Book 2

I think Series, Collection, & Playlist could potentially use a rework.

I lean heavily on the sequence part to organize a series.
I think that series should have sub-sequences that allow for ordering by factors such as publication date or reading order.
Actually come to think of it, when you match a book and Audible matches the book to multiple series orders maybe allowing those to be 1 series in ABS but sortable by both orders.
couple examples:
enderverse
expeditionary-force
wakingup

This last one should be a collection, but I'm not a fan of the layout for collections. Playlists have the same view as series, so I would prefer to switch the styles of collections and playlists. Currently collections view makes more sense for playlists and the series style makes more sense for collections imo.
wwii

@ceramicwhite commented on GitHub (Jan 6, 2023): @advplyr Oh I was looking at some other sequences I had: `series=Star Wars #39 Kids` `series=Expeditionary Force #10.8 - Mavericks: Book 2` I think Series, Collection, & Playlist could potentially use a rework. I lean heavily on the sequence part to organize a series. I think that series should have sub-sequences that allow for ordering by factors such as publication date or reading order. Actually come to think of it, when you match a book and Audible matches the book to multiple series orders maybe allowing those to be 1 series in ABS but sortable by both orders. couple examples: ![enderverse](https://user-images.githubusercontent.com/7660824/211121455-07439d5e-313a-4872-80fe-ec5b68ab17e6.png) ![expeditionary-force](https://user-images.githubusercontent.com/7660824/211121470-fe95807c-4cf0-4ae5-a094-05b9d12f4a73.png) ![wakingup](https://user-images.githubusercontent.com/7660824/211121496-23dcdf56-d4af-4084-8030-74d978d6ea30.png) This last one should be a collection, but I'm not a fan of the layout for collections. Playlists have the same view as series, so I would prefer to switch the styles of collections and playlists. Currently collections view makes more sense for playlists and the series style makes more sense for collections imo. ![wwii](https://user-images.githubusercontent.com/7660824/211121537-97bcdac8-2163-4c69-8a9b-8ded9ebb4d21.png)
Author
Owner

@advplyr commented on GitHub (Jan 7, 2023):

I don't think those long strings should be used for series sequence. I think Audible enforces the sequence to be a number, but I thought we should allow some alphanumeric characters just in case.

It seems more like you are asking for a sort option on the series page. I'm not really sure what specifically you are trying to do.

@advplyr commented on GitHub (Jan 7, 2023): I don't think those long strings should be used for series sequence. I think Audible enforces the sequence to be a number, but I thought we should allow some alphanumeric characters just in case. It seems more like you are asking for a sort option on the series page. I'm not really sure what specifically you are trying to do.
Author
Owner

@advplyr commented on GitHub (Jan 8, 2023):

Fixed in v2.2.12

@advplyr commented on GitHub (Jan 8, 2023): Fixed in [v2.2.12](https://github.com/advplyr/audiobookshelf/releases/tag/v2.2.12)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/audiobookshelf#875
No description provided.