feat! Model thumbnails and stats UI improvements#16
Merged
Conversation
- Introduced a new API endpoint `/api/play_chunk` to allow users to play a specific chunk in the live stream. - Enhanced chunk metadata handling to support both old and new formats for source videos, normalizing the input structure. - Updated the dashboard to include a button for playing chunks directly in the stream, improving user interaction. - Improved HTML rendering by unescaping titles in Open Graph metadata for better display.
- Updated the metadata extraction process to include thumbnail URLs, titles, and channel information for videos. - Introduced a new method to extract YouTube video IDs from paths, improving video identification. - Enhanced the dashboard and stats templates to display additional video information, including thumbnails and titles. - Improved the layout and styling of the dashboard for better user experience and accessibility.
- Added audio queue management to ensure fair rotation of audio tracks during streaming. - Introduced methods for loading and saving the audio queue to persist state across sessions. - Enhanced metadata fetching to include a timestamp for cache validation, improving performance. - Updated the dashboard and stats templates to display additional video information, including thumbnails and titles. - Improved the layout and styling of the dashboard for better user experience and accessibility.
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.
Model thumbnails and stats UI improvements
video_idin play_counts; fallback to stored thumbnail or OG imagehtmlvariable shadowingthumbnail_urlper model (TubeArchivist or YouTube URL fromvideo_id)source_videos(thumbnail_url or video_id from path)data-sourcesto model button for thumbnail lookup.audio_queue.txt)