Commit b7fbcbc26d

b7fbcbc26dd3f95266b41b10d003069b4505d1ba

parent: 6a4df5a5e5

Unsigned

Duck <57977673+woducku@users.noreply.github.com> · 2025-06-02 08:31 UTC

Cubari

Layout: unified · split

docs/credits.md +1
@@ -31,6 +31,7 @@ import Credits from './.vitepress/theme/components/Contributors.vue'
31|-|-|-| 31|-|-|-|
32| **三萬筒 (30kton)** | [Have you seen AO-chan?](https://www.pixiv.net/en/artworks/110412826) | [Default banner](/faq#general) | 32| **三萬筒 (30kton)** | [Have you seen AO-chan?](https://www.pixiv.net/en/artworks/110412826) | [Default banner](/faq#general) |
33| **6y9brows** | [My life will one day be colorful](https://6y9brows.tumblr.com/post/668069737059713024/my-life-will-one-day-be-colorful) | Art link embed | 33| **6y9brows** | [My life will one day be colorful](https://6y9brows.tumblr.com/post/668069737059713024/my-life-will-one-day-be-colorful) | Art link embed |
34| **A-1 Pictures** | [Kaguya sama](https://myanimelist.net/anime/37999/Kaguya-sama_wa_Kokurasetai__Tensai-tachi_no_Renai_Zunousen/episode/4) | Cubari link embed |
34| **あまねこそら (Amane Sora)** | [おてんば兎の大宴会](https://donmai.moe/posts/6008236) | VTuber Link Embed | 35| **あまねこそら (Amane Sora)** | [おてんば兎の大宴会](https://donmai.moe/posts/6008236) | VTuber Link Embed |
35| **ATLUS** | [Futaba Sakura](https://megamitensei.fandom.com/wiki/Futaba_Sakura) | [Music banner](/music#utility-sites) | 36| **ATLUS** | [Futaba Sakura](https://megamitensei.fandom.com/wiki/Futaba_Sakura) | [Music banner](/music#utility-sites) |
36| **Bandai Namco** | [Boa Hancock](https://opbr-en.bn-ent.net/character/detail/0017.html) | [Anime Banner](/qs#anime) | 37| **Bandai Namco** | [Boa Hancock](https://opbr-en.bn-ent.net/character/detail/0017.html) | [Anime Banner](/qs#anime) |
docs/guides/manga/cubari.md added +120
@@ -0,0 +1,120 @@
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 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.
13
14::: 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.
16:::
17
18## Files and metadata
19
20::: tabs
21
22== Files and folders
23
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.
25
26```bash
27Comic_Folder/
28├── info.txt # For metadata
29├── V01 Ch001 First Chapter/
30│ ├── page001.jpg
31│ ├── page002.jpg
32│ └── ...
33└── V01 Ch002 Second Chapter/
34 ├── page001.jpg
35 └── ...
36
37```
38
39== Metadata
40
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.
42
43```bash
44title: Comic Title
45description: Comic Description
46artist: Artist Name
47author: Author Name
48cover: https://cover-url.com/image.jpg
49groups: Uploader Name
50```
51
52:::
53
54## Kaguya
55
56::: tabs
57
58== Python
59Kaguya is a python based script, so you have to download and install Python its dependencies.
60
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).
64
65== 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.
71
72== 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.
78
79```bash
80Cubari
81├── api_key.txt
82└── kaguya.py
83
84```
85
86== Run
871. Open powershell in the script folder.
882. Run `python kaguya.py`
893. Enter comic folder path.
904. Choose options accordingly.
915. It will then start uploading in batch
926. After it done uploading, it will give summary
93
94After the run, the script will generate `Comic_Name.json` and `imgchest_upload_record.txt` in the comic's base folder.
95
96```bash
97Comic_Folder/
98├── info.txt # Manga metadata
99├── imgchest_upload_record.txt # Upload history (auto-created)
100├── Your_Manga_Title.json # Manga database (auto-created)
101├── V01 Ch001 First Chapter/ # Chapter folder
102│ ├── page001.jpg
103│ ├── page002.jpg
104│ └── ...
105└── V01 Ch002 Second Chapter/
106 ├── page001.jpg
107 └── ...
108```
109
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.
111
112:::
113
114## 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.
119
120The cubari link of that page will be the comic link.\ No newline at end of file