[PR #1469] [MERGED] Adding tags to metadata.abs #3553

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

📋 Pull Request Information

Original PR: https://github.com/advplyr/audiobookshelf/pull/1469
Author: @yuuzhan
Created: 2/2/2023
Status: Merged
Merged: 2/3/2023
Merged by: @advplyr

Base: masterHead: adding-tags-to-metadata.abs


📝 Commits (4)

  • 68621e0 Update abmetadataGenerator.js
  • 7a751b8 Updated function parseAndCheckForUpdates to pass Library Item rather then just the metadata object
  • 639b600 Updated parseAndCheckForUpdates to pass in LibraryItem instead of Metadata Object
  • 08f765f Update parsing and using tags from abmetadata file

📊 Changes

3 files changed (+105 additions, -58 deletions)

View changed files

📝 server/objects/mediaTypes/Book.js (+12 -5)
📝 server/objects/mediaTypes/Podcast.js (+19 -8)
📝 server/utils/abmetadataGenerator.js (+74 -45)

📄 Description

Modified the reading / saving of metadata.abs to allow for the reading and writing of tags. Used JSON functions to stringify the objects to handle escape characters automatically, then JSON.parse to get it back in.

Tried to make the read / write as error proof as possible so it would function with files that do not have the tags entity in the metadata file.


🔄 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/1469 **Author:** [@yuuzhan](https://github.com/yuuzhan) **Created:** 2/2/2023 **Status:** ✅ Merged **Merged:** 2/3/2023 **Merged by:** [@advplyr](https://github.com/advplyr) **Base:** `master` ← **Head:** `adding-tags-to-metadata.abs` --- ### 📝 Commits (4) - [`68621e0`](https://github.com/advplyr/audiobookshelf/commit/68621e0c07bc5cbfe4f628b45998f0b09ae2a7ae) Update abmetadataGenerator.js - [`7a751b8`](https://github.com/advplyr/audiobookshelf/commit/7a751b8f91df5d94de1b04b5a538940dbdd2d4a9) Updated function parseAndCheckForUpdates to pass Library Item rather then just the metadata object - [`639b600`](https://github.com/advplyr/audiobookshelf/commit/639b6005707e0f1f6a2e8fa47adffe84cc18ba9e) Updated parseAndCheckForUpdates to pass in LibraryItem instead of Metadata Object - [`08f765f`](https://github.com/advplyr/audiobookshelf/commit/08f765fa518d4e241505f5c7a5bd17ef17ac1073) Update parsing and using tags from abmetadata file ### 📊 Changes **3 files changed** (+105 additions, -58 deletions) <details> <summary>View changed files</summary> 📝 `server/objects/mediaTypes/Book.js` (+12 -5) 📝 `server/objects/mediaTypes/Podcast.js` (+19 -8) 📝 `server/utils/abmetadataGenerator.js` (+74 -45) </details> ### 📄 Description Modified the reading / saving of metadata.abs to allow for the reading and writing of tags. Used JSON functions to stringify the objects to handle escape characters automatically, then JSON.parse to get it back in. Tried to make the read / write as error proof as possible so it would function with files that do not have the tags entity in the metadata file. --- <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:16:07 +02:00
adam closed this issue 2026-04-25 00:16:07 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#3553