Skip to content

Add OTT Lounge UI, artwork enrichment, public unlock gating, and server refactor - #6

Open
SasukeXDev wants to merge 2 commits into
mainfrom
codex/update-public-browsing-access-in-routes-gxjwn5
Open

SasukeXDev wants to merge 2 commits into
mainfrom
codex/update-public-browsing-access-in-routes-gxjwn5

Conversation

@SasukeXDev

Copy link
Copy Markdown
Owner

Motivation

  • Replace legacy Bootstrap pages with a modern OTT-style frontend and centralized templating to improve UX and reusability.
  • Enrich media metadata using TMDB artwork (poster and backdrop) and include file size bytes for improved ranking and presentation.
  • Implement a lightweight public unlock flow (24-hour cookie) and separate admin login/permission checks to allow public browsing while protecting admin actions.
  • Consolidate rendering and routing logic to simplify static asset serving and page composition.

Description

  • Introduces a new OTT UI: adds bot/server/template/* pages, bot/server/static/ott.css and bot/server/static/ott.js, and registers a static route in bot/server/__init__.py to serve assets.
  • Reworks server rendering into bot/server/render_template.py with helper functions _render_base and _render_template_file and updated page flows for enter, home, playlist, index, video download and admin pages.
  • Adds a public unlock gating mechanism using a timestamp cookie and functions _is_public_unlocked and _public_gate_or_none in bot/server/stream_routes.py, and separates admin login routes (/admin/login, /admin/logout) with centralized permission helpers _is_admin and _admin_forbidden.
  • Modernizes route handlers in bot/server/stream_routes.py to use the public gate, unified permission checks, and to render the new templates.
  • Rewrites HTML builders in bot/helper/chats.py and bot/helper/index.py to emit new OTT markup, implements rail/hero layouts and related items via related_items_html, and replaces older string templates with cleaner template.format(...) structures.
  • Enhances metadata fetching: adds fetch_artwork to bot/helper/tmdb.py that returns both poster and backdrop, updates get_messages, get_files, and search to attach poster_url, backdrop_url, and size_bytes to posts, and uses fetch_artwork across helpers.
  • Adds client-side behaviors and persistence: ott.js remembers selected channels and binds UI interactions; templates wire modal flows and admin actions to the new JS/CSS.
  • Various utility and minor changes: caching hooks (get_cache, save_cache), image thumbnail API integration, and updated file/video page logic to include related items and external player options.

Testing

  • No automated tests were available or executed for this change set.

Codex Task

@vercel

vercel Bot commented Mar 18, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
hub360 Ready Ready Preview, Comment Mar 18, 2026 8:23pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant