How fliegendewurst/kit-ilias-downloader works
Main Components
a. Core Components:
• CLI Interface (entry point)
• ILIAS Client (main downloader logic)
• Authentication System
• Download Queue Manager
• File System Handler
• Plugin System (for different content types)
b. Content Type Handlers:
• Files Handler
• Exercise Handler
• Video Handler (Opencast)
• Forum Handler
• Weblink Handler
┌─ User Interface Layer ─────────────────────┐
• CLI (src/cli.rs, src/main.rs) │
• ┬─────────────────────┬─┘
┌─ Core Layer ──────┼─────────────────────┼─┐
• ┌────────────────▼──────────────┐ │ │
• ILIAS Client │ │ │
• (src/ilias.rs) │ │ │
• ┬──────────────┘ │ │
• ┌────────────────▼──────────────┐ │ │
• Queue Manager │ │ │
• (src/queue.rs) │ │ │
• ┬──────────────┘ │ │
• ┌────────────────▼──────────────┐ │ │
• Plugin Dispatcher │◄─────┘ │
• (src/ilias/plugin_dispatch.rs) │ │
• ┬──────────────┘ │
• ┼────────────────────────┘
┌─ Plugin Layer ───▼────────────────────────┐
• ┌──────────┐ ┌─────────┐ ┌────────────┐ │
• Files │ │Exercise │ │ Video │ │
• Handler │ │Handler │ │ Handler │ │
• ┘ └─────────┘ └────────────┘ │
• ┌──────────┐ ┌─────────┐ ┌────────────┐ │
• Forum │ │ Folder │ │ Weblink │ │
• Handler │ │Handler │ │ Handler │ │
• ┘ └─────────┘ └────────────┘ │
• ┘
┌─ Utility Layer ──────────────────────────┐
• Authentication | File System Operations │
• Configuration | Error Handling │
• ┘
Important Elements to Highlight
a. Data Flow:
• How user commands flow from CLI to the ILIAS client
• How download tasks are queued and processed
• Demonstrate how different content types are handled by respective plugins
b. Key Interactions:
• Authentication flow with ILIAS server
• Download queue management
• Plugin dispatch mechanism
• File system operations
Technical Details
• Rate limiting mechanism (--rate option)
• Session management (--keep-session)
• Parallel job execution (-j option)
• Proxy support
• Content type filtering options