Commit b7fbcbc26d
Unsigned
Layout: unified · split
docs/credits.md +1
| @@ -31,6 +31,7 @@ import Credits from './.vitepress/theme/components/Contributors.vue' | ||
| 31 | 31 | |-|-|-| |
| 32 | 32 | | **三萬筒 (30kton)** | [Have you seen AO-chan?](https://www.pixiv.net/en/artworks/110412826) | [Default banner](/faq#general) | |
| 33 | 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 | 35 | | **あまねこそら (Amane Sora)** | [おてんば兎の大宴会](https://donmai.moe/posts/6008236) | VTuber Link Embed | |
| 35 | 36 | | **ATLUS** | [Futaba Sakura](https://megamitensei.fandom.com/wiki/Futaba_Sakura) | [Music banner](/music#utility-sites) | |
| 36 | 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 | --- | |
| 2 | title: Cubari guide | |
| 3 | customDescription: Guide on how to proxy comic through Cubari | |
| 4 | og: | |
| 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 | ||
| 12 | This 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 | ||
| 24 | Your 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 | |
| 27 | Comic_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 | ||
| 41 | The 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 | |
| 44 | title: Comic Title | |
| 45 | description: Comic Description | |
| 46 | artist: Artist Name | |
| 47 | author: Author Name | |
| 48 | cover: https://cover-url.com/image.jpg | |
| 49 | groups: Uploader Name | |
| 50 | ``` | |
| 51 | ||
| 52 | ::: | |
| 53 | ||
| 54 | ## Kaguya | |
| 55 | ||
| 56 | ::: tabs | |
| 57 | ||
| 58 | == Python | |
| 59 | Kaguya is a python based script, so you have to download and install Python its dependencies. | |
| 60 | ||
| 61 | 1. Download and install the latest Python binary from [here](https://www.python.org/downloads/). | |
| 62 | 2. When installing, you will see `Add Python X.XX to PATH`. You have to check that. | |
| 63 | 3. 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 | |
| 66 | To 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. | |
| 67 | 1. Visit [Image chest](https://imgchest.com/). | |
| 68 | 2. Register [new account](https://imgchest.com/register). | |
| 69 | 3. After verifying your email, go to [API section](https://imgchest.com/profile/api). | |
| 70 | 4. Create an API key and keep it somewhere saved. We will need it later step. | |
| 71 | ||
| 72 | == Script setup | |
| 73 | 1. Visit Kaguya repository. | |
| 74 | 2. Download `kaguya.py` from the repository. | |
| 75 | 3. Place it in a folder. | |
| 76 | 4. Create `api_key.txt` in the same folder. | |
| 77 | 5. Put the Image chest API key in the text file. | |
| 78 | ||
| 79 | ```bash | |
| 80 | Cubari | |
| 81 | ├── api_key.txt | |
| 82 | └── kaguya.py | |
| 83 | ||
| 84 | ``` | |
| 85 | ||
| 86 | == Run | |
| 87 | 1. Open powershell in the script folder. | |
| 88 | 2. Run `python kaguya.py` | |
| 89 | 3. Enter comic folder path. | |
| 90 | 4. Choose options accordingly. | |
| 91 | 5. It will then start uploading in batch | |
| 92 | 6. After it done uploading, it will give summary | |
| 93 | ||
| 94 | After the run, the script will generate `Comic_Name.json` and `imgchest_upload_record.txt` in the comic's base folder. | |
| 95 | ||
| 96 | ```bash | |
| 97 | Comic_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 | |
| 115 | 1. You need to have a GitHub account. Older account is better, so that GitHub doesn't randomly flag your account. | |
| 116 | 2. Go to [GitHub Gist](https://gist.github.com/) and upload the JSON file there. It can be secret or public gist. | |
| 117 | 3. Click the **RAW** button after uploading and copy the link. | |
| 118 | 4. Go to [Cubari](https://cubari.moe/) and enter the link there. It will load all the chapters with the metadata. | |
| 119 | ||
| 120 | The cubari link of that page will be the comic link. | |
| \ No newline at end of file | ||