docs/guides/manga/cubari.md

aa443b16216dfdff010e48df3e7bfd5c0d93a985
wotaku/docs/guides/manga/cubari.md rendered · source · history · blame · raw

148 lines · 6046 bytes

  1---
  2title: Cubari guide
  3customDescription: Guide on how to proxy comic through Cubari.moe
  4og:
  5    image: https://i.wotaku.wiki/f/cubari.png
  6---
  7
  8This 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).
  9
 10::: warning Cubari ≠ Cubari Proxy
 11[**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.
 12:::
 13
 14## Files and metadata
 15
 16::: tabs
 17
 18== Files and folders
 19
 20Your comic folder should follow this naming scheme:  
 21- 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.  
 22- Make sure the images inside each folder are sorted alphabetically.
 23
 24```bash
 25Comic_Folder/
 26├── info.txt                    # Comic metadata                     
 27├── V01 Ch001 First Chapter/          
 28│   ├── page001.jpg
 29│   ├── page002.jpg
 30│   └── ...
 31└── V01 Ch002 Second Chapter/
 32    ├── page001.jpg
 33    └── ...
 34```
 35
 36== Metadata
 37
 38The 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.  
 39
 40**Note:** The script supports only one uploader/group. If there are multiple, you'll need to handle it manually.
 41
 42```bash
 43title: Comic Title
 44description: Comic Description
 45artist: Artist Name
 46author: Author Name
 47cover: https://cover-url.com/image.jpg
 48groups: Uploader Name
 49```
 50
 51:::
 52
 53## Setup
 54
 55::: tabs
 56
 57== Python
 58Kaguya is a Python-based script, so you need to install Python first.
 59
 601. Download and install the latest Python release from [here](https://www.python.org/downloads/).
 612. During installation, make sure to check the option **"Add Python X.XX to PATH"**.
 62
 63**Note:** For this guide, I used [**PowerShell 7.5.1**](https://github.com/PowerShell/PowerShell).
 64
 65== Imgchest
 66To 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.
 67
 681. Visit [Image Chest](https://imgchest.com/).
 692. Register a [new account](https://imgchest.com/register).
 703. After verifying your email, go to the [API section](https://imgchest.com/profile/api).
 714. Create an API key and save it somewhere safe, you'll need it in a later step.
 72
 73== GitHub
 741. You need a GitHub account. An older account is less likely to be flagged by GitHub.
 752. Open a new [public repo](https://github.com/new).
 763. Generate a new [token](https://github.com/settings/tokens/new?scopes=public_repo&description=Kaguya).
 774. Save the token to somewhere safe like ImgChest API token.
 78
 79== Script
 801. Visit [Kaguya repository](https://github.com/wotakumoe/kaguya).
 812. Clone/download the repository.
 823. Open powershell in the folder and run `pip install -r requirements.txt`
 834. Put the Image chest API key in `api_key.txt`
 845. Open the `github.txt`, fill out the user name, repository name and token.
 85
 86```bash
 87Kaguya/
 88├── api_key.txt  
 89├── github.txt  
 90├── kaguya.py
 91├── readme.md                                 
 92└── requirements.txt
 93```
 94
 95:::
 96
 97## Kaguya
 98
 99:::steps
1001. Open powershell in the script folder.
1012. Run `python kaguya.py`
1023. Enter comic folder path.
1034. Choose options accordingly.
104    ```bash
105    ⬆️ Process Options:
106    1. Upload all folders
107    2. Upload only new folders (skip already uploaded)
108    3. Select specific folder(s) to upload/re-upload
109    4. Update GitHub only (uses existing manga.json for this manga)
110    5. Cancel
111    ```
1125. It will then start uploading in batch.
1136. After it done uploading, it will ask whether you wanna upload the JSON in the GitHub repo.
1147. When all the process is done, it will give summary.
115:::
116
117::: info Manual JSON Upload
1181. You need a GitHub account. An older account is less likely to be flagged by GitHub.
1192. Open a new [public repo](https://github.com/new) and upload the JSON file there.
1203. Go to [**Cubari**](https://cubari.moe/) and paste `https://raw.githubusercontent.com/user/repo/main/comic_title.json` there. It will load all your chapters along with their metadata.
121
122The Cubari link generated on that page will be your comic’s final shareable link.
123:::
124
125### Generated files
126
127After the run, the script will generate `comic_title.json`, `imgchest_upload_record.txt` and `cubari_urls.txt` in the comic's base folder.
128
129| filename | Destination | Description |
130|-|-|-|
131| `comic_title.json` | Comic folder | Will contain all the chapter links and metadata for cubari. |
132| `imgchest_upload_record.txt` | Comic folder | 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. |
133| `cubari_urls.txt` | Kaguya folder | Keeps log of all the uploads using Kaguya | 
134
135
136## Mihon
137
138- You can find the Cubari extension in [these repositories](/guides/ext/mihon#manga). Follow the guide to install the extension.
139- Then go to your phone: **Settings** -> **Apps** -> **All Apps** -> **Tachiyomi: Cubari** -> **Open by default** -> **Add link**.
140- Check the links you want to associate. For this guide, you should enable `cubari.moe` and `*.cubari.moe`, then tap **Add**.
141
142![](/ss/cubariss.png)
143
144Your phone will now open selected Cubari URLs directly in Mihon using the extension.
145
146::: warning README
147Cubari behaves differently from typical extensions. It won’t display a catalog of manga inside Mihon. Instead, it will only show titles you’ve visited via this extension or those you've added to your library manually.
148:::