feat(userscript): Seed covers panel on MangaBaka series pages
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
162ab4afb0
commit
df7e1bcd42
8 files changed
+122
-6
No files matched your search
+4
-1
@@ -296,7 +296,10 @@ export function mountApp(o: AppOptions): void {
|
||||
try {
|
||||
const res = await o.session.rehost(host, hostOptions(), (done, total) => status(ui.rehostStatus, `Uploading… ${done}/${total}`));
|
||||
if (res.allFailed) status(ui.rehostStatus, `Every upload failed: ${res.failures[0]?.message ?? "unknown error"}`, true);
|
||||
else status(ui.rehostStatus, `${res.hosted.size} rehosted${res.failures.length ? `, ${res.failures.length} failed (see the covers)` : ""}.`);
|
||||
else {
|
||||
const done = host === "direct" ? `${res.hosted.size} ready with their source URLs (not rehosted)` : `${res.hosted.size} rehosted`;
|
||||
status(ui.rehostStatus, `${done}${res.failures.length ? `, ${res.failures.length} failed (see the covers)` : ""}.`);
|
||||
}
|
||||
} catch (err) {
|
||||
status(ui.rehostStatus, errorText(err), true);
|
||||
} finally {
|
||||
|
||||
Reference in new issue
Block a user