The download system allows you to download manga directly from MangaDex into your Komga library.
Install gallery-dl:
pip install gallery-dl
curl -X POST http://localhost:25600/api/v1/downloads \
-H "Content-Type: application/json" \
-d '{
"url": "https://mangadex.org/title/a1c7c817-4e59-43b7-9365-09c5f56e5eb1",
"libraryId": "your-library-id"
}'
| Status | Description |
|---|---|
PENDING |
Waiting in queue |
DOWNLOADING |
Currently downloading |
COMPLETED |
Successfully finished |
FAILED |
Download failed (will retry) |
PAUSED |
Manually paused |
CANCELLED |
Manually cancelled |
Connect to the SSE endpoint for live updates:
const eventSource = new EventSource('/api/v1/downloads/progress');
eventSource.onmessage = (event) => {
const progress = JSON.parse(event.data);
console.log(`${progress.title}: ${progress.percent}%`);
};
Each chapter is saved to the database immediately after download. If Komga crashes:
The system respects MangaDex API rate limits:
Each downloaded CBZ includes metadata:
<ComicInfo>
<Title>Chapter 1</Title>
<Series>Manga Title</Series>
<Number>1</Number>
<Volume>1</Volume>
<Writer>Author Name</Writer>
<Penciller>Artist Name</Penciller>
<LanguageISO>en</LanguageISO>
<Manga>YesAndRightToLeft</Manga>
</ComicInfo>
Clear completed, failed, or cancelled downloads:
# Clear completed
curl -X DELETE http://localhost:25600/api/v1/downloads/clear/completed
# Clear failed
curl -X DELETE http://localhost:25600/api/v1/downloads/clear/failed
# Clear cancelled
curl -X DELETE http://localhost:25600/api/v1/downloads/clear/cancelled
gallery-dl --version.chapter-urls.json exists in series folder