docs/guides/manga/cubari.md

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

150 lines · 6140 bytes

  1---
  2title: Cubari guide
  3customDescription: Guide on how to proxy comic through Cubari.moe
  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.moe" 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## Setup
 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== GitHub
 781. You need a GitHub account. An older account is less likely to be flagged by GitHub.
 792. Open a new [public repo](https://github.com/new).
 803. Generate a new [token](https://github.com/settings/tokens/new?scopes=public_repo&description=Kaguya).
 814. Save the token to somewhere safe like ImgChest API token.
 82
 83== Script
 841. Visit [Kaguya repository](https://github.com/wotakumoe/kaguya).
 852. Clone/download the repository.
 863. Open powershell in the folder and run `pip install -r requirements.txt`
 874. Put the Image chest API key in `api_key.txt`
 885. Open the `github.txt`, fill out the user name, repository name and token.
 89
 90```bash
 91Kaguya/
 92├── api_key.txt  
 93├── github.txt  
 94├── kaguya.py
 95├── readme.md                                 
 96└── requirements.txt
 97```
 98
 99:::
100
101## Kaguya
102
1031. Open powershell in the script folder.
1042. Run `python kaguya.py`
1053. Enter comic folder path.
1064. Choose options accordingly.
107```bash
108⬆️ Process Options:
1091. Upload all folders
1102. Upload only new folders (skip already uploaded)
1113. Select specific folder(s) to upload/re-upload
1124. Update GitHub only (uses existing manga.json for this manga)
1135. Cancel
114```
1155. It will then start uploading in batch.
1166. After it done uploading, it will ask whether you wanna upload the JSON in the GitHub repo.
1177. When all the process is done, it will give summary.
118
119::: info Manual JSON Upload
1201. You need a GitHub account. An older account is less likely to be flagged by GitHub.
1212. Open a new [public repo](https://github.com/new) and upload the JSON file there.
1223. 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.
123
124The Cubari link generated on that page will be your comic’s final shareable link.
125:::
126
127### Generated files
128
129After the run, the script will generate `comic_title.json`, `imgchest_upload_record.txt` and `cubari_urls.txt` in the comic's base folder.
130
131| filename | Destination | Description |
132|-|-|-|
133| `comic_title.json` | Comic folder | Will contain all the chapter links and metadata for cubari. |
134| `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. |
135| `cubari_urls.txt` | Kaguya folder | Keeps log of all the uploads using Kaguya | 
136
137
138## Mihon
139
140- You can find the Cubari extension in [these repositories](/guides/ext/mihon#manga). Follow the guide to install the extension.
141- Then go to your phone: **Settings** -> **Apps** -> **All Apps** -> **Tachiyomi: Cubari** -> **Open by default** -> **Add link**.
142- Check the links you want to associate. For this guide, you should enable `cubari.moe` and `*.cubari.moe`, then tap **Add**.
143
144![](/ss/cubariss.png)
145
146Your phone will now open selected Cubari URLs directly in Mihon using the extension.
147
148::: warning README
149Cubari 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.
150:::