Media-aware browsing labels and filters for videos, audio, images, and books#366
Open
GarbaJohnAshifa wants to merge 1 commit intoiiab:masterfrom
Open
Media-aware browsing labels and filters for videos, audio, images, and books#366GarbaJohnAshifa wants to merge 1 commit intoiiab:masterfrom
GarbaJohnAshifa wants to merge 1 commit intoiiab:masterfrom
Conversation
Author
|
@tim-moody Could you please review this? |
chapmanjacobd
approved these changes
Mar 9, 2026
Member
|
This PR looks good How timely! I'm actually working on something that is a bit similar to this. I don't know if it can completely replace Calibre-Web but maybe someday. It has Media Type filters too: https://github.com/chapmanjacobd/discotheque
|
Member
|
@deldesir @tim-moody would you have the time to review this @GarbaJohnAshifa's PR here? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


This PR makes the browsing UI less book-only and adds direct media-type browsing.
What changed:
-Added media context helpers to detect dominant library media type and build format-based filters.
-Added media-type routes and sidebar entries for: videos, audios, images, books
-Updated list and section titles to be media-aware (for example Hot/Top Rated/Read/Unread/Archived).
-Updated wording: Discover (Random Books) -> Discover, Book Details -> Content Details
-Updated detail page media action blocks so audio/video/image actions can all appear when available.
Files touched:
cps/constants.py
cps/media_context.py (new)
cps/render_template.py
cps/web.py
cps/templates/detail.html
cps/templates/index.html
cps/templates/layout.html