How huaotem-bot/gezi-quark-downloader works
GeZi is a Windows WPF client for Quark cloud-drive downloads. The main workflow starts in the desktop UI: users provide a share link or choose files, the app resolves file information and download links through Quark APIs, then schedules resumable segmented downloads to local files. Separate branches cover QR login and QR recognition, account management, direct-link export, and playback of partially downloaded files. The README documents several capabilities whose detailed implementation was not sampled, so those links are documented rather than source-verified.
Main entry points: MainWindow.xaml.cs Main window · LoginQrService.cs QR login service · QuarkClient.cs Quark API client · DownloadScheduler.cs Download scheduler
Components 23
Desktop experience
- Main window
src/GeZi/MainWindow.xaml.cs - Tray controls
src/GeZi/TrayIcon.cs - Floating window
src/GeZi/MiniWindow.xaml.cs - Theme manager
src/GeZi/ThemeManager.cs - QR scan window
src/GeZi/ScanQrWindow.cs
Quark access
- QR decoder
src/GeZi.Core/Support/QrDecoder.cs - QR login service
src/GeZi.Core/Api/LoginQrService.cs - Python bridge
src/GeZi.Core/Api/QuarkPythonBridge.cs - Quark API client
src/GeZi.Core/Api/QuarkClient.cs - HTTP session
src/GeZi.Core/Support/QuarkSession.cs - Share URL parser
src/GeZi.Core/Support/ShareUrlParser.cs
Download engine
- Download scheduler
src/GeZi.Core/Download/DownloadScheduler.cs - Download job
src/GeZi.Core/Download/DownloadJob.cs - Segmented downloader
src/GeZi.Core/Download/SegmentedDownloader.cs - Thread allocator
src/GeZi.Core/Download/ThreadAllocator.cs
Local state
- Account store
src/GeZi/AccountStore.cs - History store
src/GeZi/HistoryStore.cs - Link cache
src/GeZi/LinkCache.cs
Playback and utilities
- Link exporter
src/GeZi.Core/Support/LinkExporter.cs - Player launching
src/GeZi/ShellLaunch.cs - Player locator
src/GeZi/PlayerLocator.cs
Other components
- User
- Quark cloud service
Connections 23
- User → Main window: uses
README.md - Main window → Share URL parser: parses links
src/GeZi/MainWindow.xaml.cs - Main window → Quark API client: requests file links
src/GeZi/MainWindow.xaml.cs - Quark API client → HTTP session: sends requests
src/GeZi.Core/Api/QuarkClient.cs - Quark API client → Quark cloud service: calls API
README.md - User → QR scan window: submits QR
README.md - QR scan window → QR decoder: decodes image
src/GeZi/ScanQrWindow.cs - Main window → QR login service: starts login
README.md - QR login service → Python bridge: uses bridge
src/GeZi.Core/Api/LoginQrService.cs - QR login service → Quark cloud service: requests login
README.md - Main window → Download scheduler: queues downloads
src/GeZi/MainWindow.xaml.cs - Download scheduler → Download job: runs jobs
src/GeZi.Core/Download/DownloadScheduler.cs - Download scheduler → Segmented downloader: runs downloader
src/GeZi.Core/Download/DownloadScheduler.cs - Segmented downloader → Thread allocator: allocates threads
- Main window → Account store: manages accounts
README.md - Main window → History store: restores tasks
README.md - Main window → Link cache: reuses links
src/GeZi/MainWindow.xaml.cs - Main window → Link exporter: exports links
src/GeZi/MainWindow.xaml.cs - Main window → Tray controls: controls tray
src/GeZi/MainWindow.xaml.cs - Tray controls → Floating window: opens window
README.md - Main window → Theme manager: sets theme
README.md - Main window → Player launching: plays partial files
README.md - Player launching → Player locator: locates player
src/GeZi/ShellLaunch.cs