Repository navigation
Audiobooks from the database: hide course narration, instructor uploads - #263
Merged
Merged
Conversation
…udiobooks The Audiobooks shelf was built from every course with narration on audio.edorax.com. Those books are course content we do not want exposed. Audiobooks are now standalone books stored in the database: - Audiobook and AudiobookTrack tables, with a migration. - Public API (/api/v1/audiobooks): published books only, audio streamed from the private R2 bucket with range support. - Instructor API (/api/v1/teach/audiobooks): create, edit, upload MP3 chapters, reorder, rename, remove, publish, unpublish, delete. Owners and admins only. - Teach workspace pages at /workspace/audiobooks. - The learner shelf and book page read from the API. Course narration is no longer listed. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
What
The Audiobooks shelf listed every course with narration (24 books), built from
audio.edorax.commanifests. That is course content we do not want exposed. This PR removes those books from the shelf and makes audiobooks standalone, stored in the database, uploaded by instructors.Changes
AudiobookandAudiobookTracktables (migration20261123120000_audiobooks, only adds tables)./api/v1/audiobooks: published books only. Audio is streamed from the private R2 bucket with range support. Unpublishing closes the audio at once./api/v1/teach/audiobooks: create, edit, upload MP3 chapters (up to 50 MB each), reorder, rename, remove, publish, unpublish, delete. Owner or admin only./workspace/audiobooks(list) and an editor page, plus a sidebar link./audiobooksand the book page read from the API. Books have numbered chapters, no parts. The old course manifest code is removed.Tested
Not tested
Before or after merge
audio.edorax.com, and the desktop app (it still lists course audiobooks).🤖 Generated with Claude Code