Commit 8e85f8f466

8e85f8f4668d371b2117505854f5471a89e11a4c

parent: b45ecc418a

Unsigned

Duck <57977673+woducku@users.noreply.github.com> · 2025-06-03 05:58 UTC

Kaguya

Layout: unified · split

docs/.vitepress/configs/constants.ts +2
@@ -80,6 +80,7 @@ export const nav: DefaultTheme.NavItem[] = [
8080 {
8181 text: 'Manga',
8282 items: [
83 { text: 'Cubari guide', link: '/guides/manga/cubari' },
8384 { text: 'Digital Comic Info', link: '/guides/manga/comicinfo' },
8485 { text: 'Downloading Manga', link: '/guides/manga/mdl' },
8586 { text: 'JXL Manga Readers', link: '/guides/manga/jxl' },
@@ -236,6 +237,7 @@ export const sidebar: DefaultTheme.Sidebar = [
236237 text: 'Manga',
237238 collapsed: true,
238239 items: [
240 { text: 'Cubari guide', link: '/guides/manga/cubari' },
239241 { text: 'Digital Comic Info', link: '/guides/manga/comicinfo' },
240242 { text: 'Downloading Manga', link: '/guides/manga/mdl' },
241243 { text: 'JXL Manga Readers', link: '/guides/manga/jxl' },
docs/guides/manga/cubari.md +38 −30
@@ -9,10 +9,10 @@ og:
99
1010<br>
1111
12This guide is on how to publish your comic through [**Cubari**](https://cubari.moe/). Cubari doesn't host any files itself, but instead reads a JSON file with all the image file links (alongside other metadata). To host the images we will use [**Image Chest**](https://imgchest.com/) and to generate JSON file, we will use Kaguya script.
12This guide explains how to publish your comic using [**Cubari**](https://cubari.moe/). Cubari does not host any files directly; instead, it reads a JSON file containing image links and other metadata. To host the images, we’ll use [**Image Chest**](https://imgchest.com/), and to generate the JSON file, we’ll use the [**Kaguya script**](https://github.com/wotakumoe/kaguya).
1313
1414::: warning Cubari ≠ Cubari Proxy
15[**Cubari**](https://cubari.moe/) and [**Cubari Proxy**](https://proxy.cubari.moe/) are functionally different. Cubari Proxy is a scraper, meanwhile Cubari is more to proxy images from your hosted source.
15[**Cubari**](https://cubari.moe/) and [**Cubari Proxy**](https://proxy.cubari.moe/) serve different purposes. Cubari Proxy is a scraper, while Cubari acts as a proxy that displays images from your own hosted sources.
1616:::
1717
1818## Files and metadata
@@ -21,7 +21,9 @@ This guide is on how to publish your comic through [**Cubari**](https://cubari.m
2121
2222== Files and folders
2323
24Your comic folder should follow this scheme. The folders name should be like `V# Ch# Title`. You can skip volume number and chapter title, but the chapter number is a must. The images inside should be alphabetically sorted.
24Your comic folder should follow this naming scheme:
25- Folder names should be formatted like `V# Ch# Title`. The volume number (`V#`) and chapter title are optional, but the chapter number (`Ch#`) is required.
26- Make sure the images inside each folder are sorted alphabetically.
2527
2628```bash
2729Comic_Folder/
@@ -33,12 +35,13 @@ Comic_Folder/
3335└── V01 Ch002 Second Chapter/
3436 ├── page001.jpg
3537 └── ...
36
3738```
3839
3940== Metadata
4041
41The given metadata will be shown in the comic homepage. You have to create a `info.txt` file inside your base comic folder, then fill out the text file following this scheme. The script expects only one uploader/group, so if there are multiple, you have to do it manually.
42The given metadata will be displayed on the comic's homepage. Create an `info.txt` file inside your base comic folder and fill it out using the following format.
43
44**Note:** The script supports only one uploader/group. If there are multiple, you'll need to handle it manually.
4245
4346```bash
4447title: Comic Title
@@ -56,31 +59,33 @@ groups: Uploader Name
5659::: tabs
5760
5861== Python
59Kaguya is a python based script, so you have to download and install Python its dependencies.
62Kaguya is a Python-based script, so you need to install Python and its dependencies first.
63
641. Download and install the latest Python release from [here](https://www.python.org/downloads/).
652. During installation, make sure to check the option **"Add Python X.XX to PATH"**.
6066
611. Download and install the latest Python binary from [here](https://www.python.org/downloads/).
622. When installing, you will see `Add Python X.XX to PATH`. You have to check that.
633. Open PowerShell and run `pip install requests`. For this guide, I have used [**PowerShell 7.5.1**](https://github.com/PowerShell/PowerShell).
67**Note:** For this guide, I used [**PowerShell 7.5.1**](https://github.com/PowerShell/PowerShell).
6468
6569== Imgchest
66To host images, we are using [Image chest](https://imgchest.com/). Here we can post images up to 20 at a time, but later we can add more. The script will add images in chunks. To upload the images we need API key.
671. Visit [Image chest](https://imgchest.com/).
682. Register [new account](https://imgchest.com/register).
693. After verifying your email, go to [API section](https://imgchest.com/profile/api).
704. Create an API key and keep it somewhere saved. We will need it later step.
70To host images, we are using [Image Chest](https://imgchest.com/). You can upload up to 20 images at a time, but more can be added later. The script uploads images in chunks, so you'll need an API key to automate this process.
71
721. Visit [Image Chest](https://imgchest.com/).
732. Register a [new account](https://imgchest.com/register).
743. After verifying your email, go to the [API section](https://imgchest.com/profile/api).
754. Create an API key and save it somewhere safe — you'll need it in a later step.
7176
7277== Script setup
731. Visit Kaguya repository.
742. Download `kaguya.py` from the repository.
753. Place it in a folder.
764. Create `api_key.txt` in the same folder.
775. Put the Image chest API key in the text file.
781. Visit [Kaguya repository](https://github.com/wotakumoe/kaguya).
792. Clone/download the repository.
803. Open powershell in the folder and run `pip install -r requirements.txt`
814. Put the Image chest API key in `api_key.txt`
7882
7983```bash
80Cubari
81├── api_key.txt
82└── kaguya.py
83
84Kaguya/
85├── api_key.txt
86├── kaguya.py
87├── readme.md
88└── requirements.txt
8489```
8590
8691== Run
@@ -91,7 +96,7 @@ Cubari
91965. It will then start uploading in batch
92976. After it done uploading, it will give summary
9398
94After the run, the script will generate `Comic_Name.json` and `imgchest_upload_record.txt` in the comic's base folder.
99After the run, the script will generate `Comic_Title.json` and `imgchest_upload_record.txt` in the comic's base folder.
95100
96101```bash
97102Comic_Folder/
@@ -107,14 +112,17 @@ Comic_Folder/
107112 └── ...
108113```
109114
110`imgchest_upload_record.txt` will contain all the folders uploaded. If any folder upload fails, it will be missing in the text file. When you run the script, it will be tagged as new. Select `2. Upload only new folders (skip already uploaded)` to retry. After successful upload, they will be added in the JSON file. Although the new uploads will be at bottom, it won't impact Cubari serial.
115The `imgchest_upload_record.txt` file keeps track of all uploaded folders. If a folder fails to upload, it won’t be listed in this file. When you run the script again, the missing folder will be detected as new.
116
117To retry failed uploads, select: `2. Upload only new folders (skip already uploaded)`
111118
119After a successful upload, the folder will be added to the JSON file. New uploads appear at the bottom of the JSON, but this won't affect the chapter order in Cubari.
112120:::
113121
114122## Cubari
1151. You need to have a GitHub account. Older account is better, so that GitHub doesn't randomly flag your account.
1162. Go to [**GitHub Gist**](https://gist.github.com/) and upload the JSON file there. It can be secret or public gist.
1173. Click the **RAW** button after uploading and copy the link.
1184. Go to [**Cubari**](https://cubari.moe/) and enter the link there. It will load all the chapters with the metadata.
1231. You need a GitHub account. An older account is less likely to be flagged by GitHub.
1242. Go to [**GitHub Gist**](https://gist.github.com/) and upload your JSON file. You can choose to make it a public or secret gist.
1253. After uploading, click the **RAW** button and copy the URL.
1264. Go to [**Cubari**](https://cubari.moe/) and paste the RAW URL there. It will load all your chapters along with their metadata.
119127
120The cubari link of that page will be the comic link.
\ No newline at end of file
128The Cubari link generated on that page will be your comic’s final shareable link.
\ No newline at end of file