feat: add live class recording import wizard
This commit is contained in:
14 files changed
+670
-107
No files matched your search
@@ -41,6 +41,7 @@ ravin download COURSE_ID
|
||||
ravin transcribe COURSE_ID
|
||||
ravin summarize COURSE_ID
|
||||
ravin questions
|
||||
ravin recording
|
||||
ravin serve --open
|
||||
```
|
||||
|
||||
@@ -158,6 +159,31 @@ ravin questions 44 5679 revised-questions.fa.md
|
||||
|
||||
The import is local and requires no LMS login. Files are written atomically, the original attachment names are preserved, and the course manifest is refreshed immediately so the library exposes the exam under its **Questions** button.
|
||||
|
||||
## Live-class recordings
|
||||
|
||||
Add a video you recorded or received for a Moodle live-class activity with:
|
||||
|
||||
```bash
|
||||
ravin recording
|
||||
```
|
||||
|
||||
The wizard lists courses with live classes, lets you select the class, and prompts for the local video. You can paste or drag a path into the terminal, including an unquoted path containing spaces. For scripting, provide all values directly:
|
||||
|
||||
```bash
|
||||
ravin recording 44 5097 ~/Downloads/group-a-class.mp4
|
||||
```
|
||||
|
||||
The video is copied into the live class's ordered activity bundle and appears in the library as its current playable file. Re-importing the same filename preserves the previous copy under `files/archive/`; importing a differently named recording keeps the previous file as an archived version. The selected current recording survives later online scans.
|
||||
|
||||
Imported recordings use the normal media pipeline:
|
||||
|
||||
```bash
|
||||
ravin transcribe 44
|
||||
ravin summarize 44
|
||||
```
|
||||
|
||||
If a recording is replaced, any transcript and summary generated from the older version are marked stale and will be regenerated by those commands.
|
||||
|
||||
## Whisper transcription
|
||||
|
||||
After downloading a course, transcribe its video and audio in LMS order:
|
||||
@@ -313,6 +339,7 @@ ravin download COURSE_ID [--overwrite] [--retries N] [--json] [--public PATH]
|
||||
ravin transcribe [COURSE_ID ...] [--model MODEL] [--device DEVICE] [--language LANGUAGE]
|
||||
ravin summarize [COURSE_ID ...] [--model MODEL] [--retries N] [--timeout SECONDS]
|
||||
ravin questions [COURSE_ID] [ACTIVITY_ID] [QUESTIONS.md] [--file ATTACHMENT ...]
|
||||
ravin recording [COURSE_ID] [ACTIVITY_ID] [VIDEO]
|
||||
ravin serve [--host ADDRESS] [--port PORT] [--open] [--public PATH]
|
||||
```
|
||||
|
||||
@@ -334,6 +361,9 @@ src/ravin/
|
||||
├── transcribe.py # resilient manifest-driven Whisper batches
|
||||
├── summarize.py # resilient Codex CLI study-guide batches
|
||||
├── questions.py # local exam-question and attachment imports
|
||||
├── recordings.py # local live-class recording imports
|
||||
├── local_files.py # atomic local copies and archived versions
|
||||
├── wizard.py # shared interactive import helpers
|
||||
├── migration.py # previous-layout migration
|
||||
├── server.py # local range-aware HTTP server
|
||||
└── models.py # shared value objects and errors
|
||||
|
||||
Reference in new issue
Block a user