Media-aware browsing labels and filters for videos, audio, images, and books - #366
Media-aware browsing labels and filters for videos, audio, images, and books#366GarbaJohnAshifa wants to merge 8 commits into
Conversation
|
@tim-moody Could you please review this? |
|
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
|
|
@deldesir @tim-moody would you have the time to review this @GarbaJohnAshifa's PR here? |
|
Thanks @GarbaJohnAshifa. |
Any idea why? (: cc: @chapmanjacobd |
Thanks for flagging this. The UI adapt to the dominant content type, and video appears to be dominant in this library, the root/library page is currently also labeled “Videos”. But this branch also adds a separate
That makes the UI ambiguous, and I should have kept that distinction clearer. Would you prefer the root page to keep a neutral label like |
@deldesir @chapmanjacobd can you express your opinion ? |
|
Makes sense to me! "All Media"? |





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