Commit 7c1604630d
Unsigned
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 | |||
| 74 | 3. After verifying your email, go to the [API section](https://imgchest.com/profile/api). | 74 | 3. After verifying your email, go to the [API section](https://imgchest.com/profile/api). |
| 75 | 4. Create an API key and save it somewhere safe, you'll need it in a later step. | 75 | 4. Create an API key and save it somewhere safe, you'll need it in a later step. |
| 76 | 76 | ||
| 77 | == Script setup | 77 | == GitHub |
| 78 | 1. You need a GitHub account. An older account is less likely to be flagged by GitHub. | ||
| 79 | 2. Open a new [public repo](https://github.com/new). | ||
| 80 | 3. Generate a new [token](https://github.com/settings/tokens/new?scopes=public_repo&description=Kaguya). | ||
| 81 | 4. Save the token to somewhere safe like ImgChest API token. | ||
| 82 | |||
| 83 | == Script | ||
| 78 | 1. Visit [Kaguya repository](https://github.com/wotakumoe/kaguya). | 84 | 1. Visit [Kaguya repository](https://github.com/wotakumoe/kaguya). |
| 79 | 2. Clone/download the repository. | 85 | 2. Clone/download the repository. |
| 80 | 3. Open powershell in the folder and run `pip install -r requirements.txt` | 86 | 3. Open powershell in the folder and run `pip install -r requirements.txt` |
| 81 | 4. Put the Image chest API key in `api_key.txt` | 87 | 4. Put the Image chest API key in `api_key.txt` |
| 88 | 5. Open the `github.txt`, fill out the user name, repository name and token. | ||
| 82 | 89 | ||
| 83 | ```bash | 90 | ```bash |
| 84 | Kaguya/ | 91 | Kaguya/ |
| 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 | |||
| 92 | 1. Open powershell in the script folder. | 103 | 1. Open powershell in the script folder. |
| 93 | 2. Run `python kaguya.py` | 104 | 2. Run `python kaguya.py` |
| 94 | 3. Enter comic folder path. | 105 | 3. Enter comic folder path. |
| 95 | 4. Choose options accordingly. | 106 | 4. Choose options accordingly. |
| 96 | 5. It will then start uploading in batch | 107 | ```bash |
| 97 | 6. After it done uploading, it will give summary | 108 | ⬆️ Process Options: |
| 109 | 1. Upload all folders | ||
| 110 | 2. Upload only new folders (skip already uploaded) | ||
| 111 | 3. Select specific folder(s) to upload/re-upload | ||
| 112 | 4. Update GitHub only (uses existing manga.json for this manga) | ||
| 113 | 5. Cancel | ||
| 114 | ``` | ||
| 115 | 5. It will then start uploading in batch. | ||
| 116 | 6. After it done uploading, it will ask whether you wanna upload the JSON in the GitHub repo. | ||
| 117 | 7. When all the process is done, it will give summary. | ||
| 98 | 118 | ||
| 99 | After 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 | |||
| 128 | All operations complete. Goodbye! | ||
| 101 | ``` | 129 | ``` |
| 130 | |||
| 131 | After the run, the script will generate `Comic_Title.json` and `imgchest_upload_record.txt` in the comic's base folder. | ||
| 132 | |||
| 133 | ```bash | ||
| 102 | Comic_Folder/ | 134 | Comic_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 | ||
| 115 | The `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. | 147 | The `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 | |||
| 117 | To retry failed uploads, select second option. | ||
| 118 | |||
| 119 | ```powershell | ||
| 120 | ⬆️ Upload Options: | ||
| 121 | 1. Upload all folders | ||
| 122 | 2. Upload only new folders (skip already uploaded) | ||
| 123 | 3. Select specific folder(s) to upload/re-upload | ||
| 124 | 4. Cancel | ||
| 125 | ``` | ||
| 126 | |||
| 127 | After 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 | ||
| 136 | 1. You need a GitHub account. An older account is less likely to be flagged by GitHub. | 150 | 1. You need a GitHub account. An older account is less likely to be flagged by GitHub. |
| 137 | 2. Open a new [public repo](https://github.com/new) and upload the JSON file there. | 151 | 2. Open a new [public repo](https://github.com/new) and upload the JSON file there. |
| 138 | 3. 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. | 152 | 3. 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 | ||
| 141 | Soon. | ||
| 142 | |||
| 143 | ::: | ||
| 144 | 153 | ||
| 145 | The Cubari link generated on that page will be your comic’s final shareable link.\ No newline at end of file | 154 | The Cubari link generated on that page will be your comic’s final shareable link. |
| 155 | :::\ No newline at end of file | ||