[PR #2255] [MERGED] Search epub text #3681

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

📋 Pull Request Information

Original PR: https://github.com/advplyr/audiobookshelf/pull/2255
Author: @MxMarx
Created: 10/27/2023
Status: Merged
Merged: 10/28/2023
Merged by: @advplyr

Base: masterHead: added-search-epubs


📝 Commits (3)

  • 5778200 Make epubs searchable
  • 4229cb7 Added a method to unwrap the chapter list
  • 6dc5b58 Update TOC to not close when clicking on it

📊 Changes

3 files changed (+147 additions, -17 deletions)

View changed files

📝 client/components/readers/EpubReader.vue (+104 -4)
📝 client/components/readers/Reader.vue (+42 -13)
📝 client/components/ui/TextInput.vue (+1 -0)

📄 Description

Adds a search box in the table of contents sidebar to search for text within epubs.

Search results are displayed under the chapter they are found in, but at the moment, only the first two chapter levels are displayed in the ToC, so search results in chapters more than two levels deep won't appear. I could see about using a recursive component to display ToC entries instead, although I haven't found a book with more than three chapter levels yet.

This also makes adds a flattenChapters method, which converts ebook chapters into something that looks like audiobook chapters so that the seek bar will work with ebooks too (in a future pull request)

Closes #2045

image


🔄 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/2255 **Author:** [@MxMarx](https://github.com/MxMarx) **Created:** 10/27/2023 **Status:** ✅ Merged **Merged:** 10/28/2023 **Merged by:** [@advplyr](https://github.com/advplyr) **Base:** `master` ← **Head:** `added-search-epubs` --- ### 📝 Commits (3) - [`5778200`](https://github.com/advplyr/audiobookshelf/commit/5778200c8fafd569dc36626f0f67ced247ab6cc5) Make epubs searchable - [`4229cb7`](https://github.com/advplyr/audiobookshelf/commit/4229cb7fb6fce179c796b80417be8295fcd8f987) Added a method to unwrap the chapter list - [`6dc5b58`](https://github.com/advplyr/audiobookshelf/commit/6dc5b58d8e4df37a3c5a7153b81bc2c8a27506cb) Update TOC to not close when clicking on it ### 📊 Changes **3 files changed** (+147 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `client/components/readers/EpubReader.vue` (+104 -4) 📝 `client/components/readers/Reader.vue` (+42 -13) 📝 `client/components/ui/TextInput.vue` (+1 -0) </details> ### 📄 Description Adds a search box in the table of contents sidebar to search for text within epubs. Search results are displayed under the chapter they are found in, but at the moment, only the first two chapter levels are displayed in the ToC, so search results in chapters more than two levels deep won't appear. I could see about using a recursive component to display ToC entries instead, although I haven't found a book with more than three chapter levels yet. This also makes adds a flattenChapters method, which converts ebook chapters into something that looks like audiobook chapters so that the seek bar will work with ebooks too (in a future pull request) Closes #2045 ![image](https://github.com/advplyr/audiobookshelf/assets/44880075/23d9f5b1-282f-4571-9f86-263ca8dfce7a) --- <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:38 +02:00
adam closed this issue 2026-04-25 00:16: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#3681