[PR #4118] [MERGED] Allow number types for payload metadata when updating books. #4172

Closed
opened 2026-04-25 00:18:38 +02:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/advplyr/audiobookshelf/pull/4118
Author: @GabrielGavrilov
Created: 3/15/2025
Status: Merged
Merged: 3/16/2025
Merged by: @advplyr

Base: masterHead: master


📝 Commits (3)

📊 Changes

1 file changed (+4 additions, -0 deletions)

View changed files

📝 server/models/Book.js (+4 -0)

📄 Description

Brief summary

Allow number types for payload metadata when updating books.

Which issue is fixed?

4114

In-depth Description

Allow the use of number types for payload metadata when updating books.

OpenLibrary uses numbers instead of strings to update the published year, so this PR attempts to fix this issue by allowing number types for payload metadata.

How have you tested this?

I have replicated issue 4114 locally and tested the change effects.

Screenshots


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/advplyr/audiobookshelf/pull/4118 **Author:** [@GabrielGavrilov](https://github.com/GabrielGavrilov) **Created:** 3/15/2025 **Status:** ✅ Merged **Merged:** 3/16/2025 **Merged by:** [@advplyr](https://github.com/advplyr) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (3) - [`c89a9f0`](https://github.com/advplyr/audiobookshelf/commit/c89a9f0357f067e139add25d6e19ca98daac004f) Allow number types for payload metadata - [`55d8d30`](https://github.com/advplyr/audiobookshelf/commit/55d8d308cc3e338a026f2f189055640dffdcb935) cast numbers to string - [`b5a3887`](https://github.com/advplyr/audiobookshelf/commit/b5a3887912bb26ed6fb747c97a88bf754f8c7496) formatting ### 📊 Changes **1 file changed** (+4 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `server/models/Book.js` (+4 -0) </details> ### 📄 Description <!-- For Work In Progress Pull Requests, please use the Draft PR feature, see https://github.blog/2019-02-14-introducing-draft-pull-requests/ for further details. If you do not follow this template, the PR may be closed without review. Please ensure all checks pass. If you are a new contributor, the workflows will need to be manually approved before they run. --> ## Brief summary <!-- Please provide a brief summary of what your PR attempts to achieve. --> Allow number types for payload metadata when updating books. ## Which issue is fixed? [4114](https://github.com/advplyr/audiobookshelf/issues/4114) <!-- Which issue number does this PR fix? Ex: "Fixes #1234" --> ## In-depth Description Allow the use of number types for payload metadata when updating books. OpenLibrary uses numbers instead of strings to update the published year, so this PR attempts to fix this issue by allowing number types for payload metadata. <!-- Describe your solution in more depth. How does it work? Why is this the best solution? Does it solve a problem that affects multiple users or is this an edge case for your setup? --> ## How have you tested this? I have replicated issue [4114](https://github.com/advplyr/audiobookshelf/issues/4114) locally and tested the change effects. <!-- Please describe in detail with reproducible steps how you tested your changes. --> ## Screenshots <!-- If your PR includes any changes to the web client, please include screenshots or a short video from before and after your changes. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2026-04-25 00:18:38 +02:00
adam closed this issue 2026-04-25 00:18:38 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#4172