How kurtbestor/hitomi-downloader works
Main Components Identification
The system should be represented with these key components:
a) Core Application Layer
• Download Manager Engine
• User Interface (with dark mode support)
• Task Management System
• Clipboard Monitor
• Configuration Manager
b) Extractor Layer
• Website-specific Downloaders (70+ specialized downloaders)
• Generic Downloaders (M3U8, Torrent, File)
• Protocol Handlers
c) External Integration Layer
• Browser Extension Interface
• Script Plugin System
• Translation System
┌─ User Interface Layer ─────────────────────┐
• GUI Components │
• Dark/Light Theme │
• Multi-language Support │
• ┬────────────────────────┘
• ↓
┌─ Core Services Layer ───────────────────────┐
• ┌─ Task Management ─┐ ┌─ Download Engine ─┐│
• Queue System │ │ - Thread Pool ││
• Status Tracking │ │ - Speed Control ││
• ┘ └─────────────────┘ ││
• ┌─ Clipboard Monitor┐ ┌─ Config Manager ─┐││
• ┘ └─────────────────┘ ││
• ┬────────────────────────┘
• ↓
┌─ Extractor Layer ──────────────────────────┐
• ┌─ Site Specific ─┐ ┌─ Generic ─────────┐ │
• YouTube │ │ - M3U8 │ │
• Pixiv │ │ - Torrent │ │
• Twitter │ │ - Direct File │ │
• ┘ └─────────────────┘ │
• ┬────────────────────────┘
• ↓
┌─ External Integration Layer ───────────────┐
• Browser Extension API │
• Plugin System │
• Translation Services │
• ┘
Important Elements to Highlight
• Multi-threading capability (24 threads per task)
• Speed limiting mechanism
• Plugin architecture
• Translation system (supporting 10+ languages)
• Clipboard monitoring system
• Task organization system
Data Flow Indicators
Following flows:
• User input → Task Management
• Task Management → Download Engine
• Download Engine → Extractors
• Extractors → External Services
• Configuration → All Components
Technical Details
• Thread pool management
• Speed control mechanism
• File handling system
• Protocol support
• Website-specific API integrations