mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-25 12:34:47 -04:00
Changes some API things.
This commit is contained in:
parent
811994423d
commit
a60d5556af
13 changed files with 36 additions and 33 deletions
|
@ -77,7 +77,7 @@ class Api {
|
|||
}
|
||||
|
||||
|
||||
else if ($action === "getthumbsrc") {
|
||||
else if ($action === "getThumbHref") {
|
||||
|
||||
if (!$options["thumbnails"]["enabled"]) {
|
||||
json_fail(1, "thumbnails disabled");
|
||||
|
@ -100,7 +100,7 @@ class Api {
|
|||
}
|
||||
|
||||
|
||||
else if ($action === "archive") {
|
||||
else if ($action === "createArchive") {
|
||||
|
||||
json_fail(1, "downloads disabled", !$options["download"]["enabled"]);
|
||||
|
||||
|
@ -120,7 +120,7 @@ class Api {
|
|||
}
|
||||
|
||||
|
||||
else if ($action === "getarchive") {
|
||||
else if ($action === "getArchive") {
|
||||
|
||||
json_fail(1, "downloads disabled", !$options["download"]["enabled"]);
|
||||
|
||||
|
@ -222,11 +222,6 @@ class Api {
|
|||
|
||||
json_exit();
|
||||
}
|
||||
|
||||
|
||||
else {
|
||||
json_fail(100, "unsupported action");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue