[Bug]: Crash on Quick Match with iTunes: *TypeError: matchData[key].split is not a function* #667

Closed
opened 2026-02-20 10:01:57 -05:00 by deekerman · 1 comment
Owner

Originally created by @raphaelporsche on GitHub (Oct 1, 2022).

Describe the issue

Quick Match an audiobook when metadata provider is set to iTunes crashes audiobookshelf:

audiobookshelf_1  | /server/libs/njodb/index.js:103
audiobookshelf_1  |         throw error;
audiobookshelf_1  |         ^
audiobookshelf_1  |
audiobookshelf_1  | TypeError: matchData[key].split is not a function
audiobookshelf_1  |     at Scanner.quickMatchBookBuildUpdatePayload (/server/scanner/Scanner.js:800:58)
audiobookshelf_1  |     at Scanner.quickMatchLibraryItem (/server/scanner/Scanner.js:710:34)
audiobookshelf_1  |     at async ApiRouter.match (/server/controllers/LibraryItemController.js:240:23)
audiobookshelf_audiobookshelf_1 exited with code 7

Steps to reproduce the issue

  1. Set metadata provider to iTunes
  2. Quick Match an audio book

Audiobookshelf version

2.1.5

How are you running audiobookshelf?

Docker

Originally created by @raphaelporsche on GitHub (Oct 1, 2022). ### Describe the issue Quick Match an audiobook when metadata provider is set to iTunes crashes audiobookshelf: ``` audiobookshelf_1 | /server/libs/njodb/index.js:103 audiobookshelf_1 | throw error; audiobookshelf_1 | ^ audiobookshelf_1 | audiobookshelf_1 | TypeError: matchData[key].split is not a function audiobookshelf_1 | at Scanner.quickMatchBookBuildUpdatePayload (/server/scanner/Scanner.js:800:58) audiobookshelf_1 | at Scanner.quickMatchLibraryItem (/server/scanner/Scanner.js:710:34) audiobookshelf_1 | at async ApiRouter.match (/server/controllers/LibraryItemController.js:240:23) audiobookshelf_audiobookshelf_1 exited with code 7 ``` ### Steps to reproduce the issue 1. Set metadata provider to iTunes 2. Quick Match an audio book ### Audiobookshelf version 2.1.5 ### How are you running audiobookshelf? Docker
deekerman 2026-02-20 10:01:57 -05:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@advplyr commented on GitHub (Oct 2, 2022):

Fixed in v2.2.0

@advplyr commented on GitHub (Oct 2, 2022): Fixed in [v2.2.0](https://github.com/advplyr/audiobookshelf/releases/tag/v2.2.0)
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-advplyr#667
No description provided.