Commit 7c1604630d

7c1604630dd3b8df0f37122b01c5e0b3a2fa3e08

parent: 9631a87612

Unsigned

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

Update cubari.md

Layout: unified · split

docs/guides/manga/cubari.md +43 −33
@@ -54,7 +54,7 @@ groups: Uploader Name
54 54
55::: 55:::
56 56
57## Kaguya 57## Setup
58 58
59::: tabs 59::: tabs
60 60
@@ -74,31 +74,63 @@ To host images, we are using [Image Chest](https://imgchest.com/). You can uploa
743. After verifying your email, go to the [API section](https://imgchest.com/profile/api). 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. 754. Create an API key and save it somewhere safe, you'll need it in a later step.
76 76
77== Script setup 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
781. Visit [Kaguya repository](https://github.com/wotakumoe/kaguya). 841. Visit [Kaguya repository](https://github.com/wotakumoe/kaguya).
792. Clone/download the repository. 852. Clone/download the repository.
803. Open powershell in the folder and run `pip install -r requirements.txt` 863. Open powershell in the folder and run `pip install -r requirements.txt`
814. Put the Image chest API key in `api_key.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.
82 89
83```bash 90```bash
84Kaguya/ 91Kaguya/
85├── api_key.txt 92├── api_key.txt
93├── github.txt
86├── kaguya.py 94├── kaguya.py
87├── readme.md 95├── readme.md
88└── requirements.txt 96└── requirements.txt
89``` 97```
90 98
91== Run 99:::
100
101## Kaguya
102
921. Open powershell in the script folder. 1031. Open powershell in the script folder.
932. Run `python kaguya.py` 1042. Run `python kaguya.py`
943. Enter comic folder path. 1053. Enter comic folder path.
954. Choose options accordingly. 1064. Choose options accordingly.
965. It will then start uploading in batch 107```bash
976. After it done uploading, it will give summary 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.
98 118
99After the run, the script will generate `Comic_Title.json` and `imgchest_upload_record.txt` in the comic's base folder. 119```bash
120✅ GitHub: Uploaded comic_title.json (branch: main)
121🔗 Raw URL: https://raw.githubusercontent.com/user/repo/main/comic_title.json
122📚 Cubari URL: https://cubari.moe/read/gist/cmF3L3VzZXIvcmVwby9tYWluL2NvbWljX3RpdGxlLmpzb24==/
100 123
124✓ Successfully uploaded comic_title.json ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
125
126💾 GitHub upload log saved/appended to: cubari_urls.txt
127
128All operations complete. Goodbye!
101``` 129```
130
131After the run, the script will generate `Comic_Title.json` and `imgchest_upload_record.txt` in the comic's base folder.
132
133```bash
102Comic_Folder/ 134Comic_Folder/
103├── info.txt # Comic metadata 135├── info.txt # Comic metadata
104├── imgchest_upload_record.txt # Upload history (auto-created) 136├── imgchest_upload_record.txt # Upload history (auto-created)
@@ -112,34 +144,12 @@ Comic_Folder/
112 └── ... 144 └── ...
113``` 145```
114 146
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. 147The `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. Also `cubari_urls.txt` in the Kaguya folder.
116
117To retry failed uploads, select second option.
118
119```powershell
120⬆️ Upload Options:
1211. Upload all folders
1222. Upload only new folders (skip already uploaded)
1233. Select specific folder(s) to upload/re-upload
1244. Cancel
125```
126
127After 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.
128:::
129
130## Cubari
131
132::: tabs
133
134== Manual
135 148
149::: info Manual JSON Upload
1361. You need a GitHub account. An older account is less likely to be flagged by GitHub. 1501. You need a GitHub account. An older account is less likely to be flagged by GitHub.
1372. Open a new [public repo](https://github.com/new) and upload the JSON file there. 1512. Open a new [public repo](https://github.com/new) and upload the JSON file there.
1383. 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. 1523. 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.
139
140== Script
141Soon.
142
143:::
144 153
145The Cubari link generated on that page will be your comic’s final shareable link.\ No newline at end of file 154The Cubari link generated on that page will be your comic’s final shareable link.
155:::\ No newline at end of file