docs/guides/manga/cubari.md

9cb08479dac431c3d9ced24b3a6bd56aa054feeb
wotaku/docs/guides/manga/cubari.md

128 lines · 5122 bytes

  1---
  2title: Cubari guide
  3customDescription: Guide on how to proxy comic through Cubari
  4og:
  5    image: https://files.catbox.moe/m3xqdl.png
  6---
  7
  8<GradientCard title="Cubari guide" description="Guide on how to proxy comic through Cubari." theme="turquoise" variant="thin"/>
  9
 10<br>
 11
 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).
 13
 14::: warning Cubari ≠ Cubari Proxy
 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.
 16:::
 17
 18## Files and metadata
 19
 20::: tabs
 21
 22== Files and folders
 23
 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.
 27
 28```bash
 29Comic_Folder/
 30├── info.txt                    # Comic metadata                     
 31├── V01 Ch001 First Chapter/          
 32│   ├── page001.jpg
 33│   ├── page002.jpg
 34│   └── ...
 35└── V01 Ch002 Second Chapter/
 36    ├── page001.jpg
 37    └── ...
 38```
 39
 40== Metadata
 41
 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.
 45
 46```bash
 47title: Comic Title
 48description: Comic Description
 49artist: Artist Name
 50author: Author Name
 51cover: https://cover-url.com/image.jpg
 52groups: Uploader Name
 53```
 54
 55:::
 56
 57## Kaguya
 58
 59::: tabs
 60
 61== Python
 62Kaguya is a Python-based script, so you need to install Python 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"**.
 66
 67**Note:** For this guide, I used [**PowerShell 7.5.1**](https://github.com/PowerShell/PowerShell).
 68
 69== Imgchest
 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.
 76
 77== Script setup
 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`
 82
 83```bash
 84Kaguya/
 85├── api_key.txt  
 86├── kaguya.py
 87├── readme.md                                 
 88└── requirements.txt
 89```
 90
 91== Run
 921. Open powershell in the script folder.
 932. Run `python kaguya.py`
 943. Enter comic folder path.
 954. Choose options accordingly.
 965. It will then start uploading in batch
 976. After it done uploading, it will give summary
 98
 99After the run, the script will generate `Comic_Title.json` and `imgchest_upload_record.txt` in the comic's base folder.
100
101```bash
102Comic_Folder/
103├── info.txt                           # Comic metadata
104├── imgchest_upload_record.txt         # Upload history (auto-created)
105├── Comic_Title.json                   # JSON for Cubari (auto-created)
106├── V01 Ch001 First Chapter/           # Chapter folder
107│   ├── page001.jpg
108│   ├── page002.jpg
109│   └── ...
110└── V01 Ch002 Second Chapter/          # Chapter folder
111    ├── page001.jpg
112    └── ...
113```
114
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)`
118
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.
120:::
121
122## Cubari
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.
127
128The Cubari link generated on that page will be your comic’s final shareable link.