1
0
Fork 0
mirror of https://github.com/Yetangitu/owncloud-apps.git synced 2025-10-02 14:49:17 +02:00

OPDS catalog: add Google Books API key (optional, increases rate limit when used)

This commit is contained in:
frankdelange 2015-02-13 00:33:24 +01:00
parent 0f7a2b145a
commit e135c7ba14
5 changed files with 17 additions and 4 deletions

View file

@ -26,6 +26,7 @@ if (isset($_POST['opdsCoverX'])) {
$opdsThumbY = isset($_POST['opdsThumbY']) ? (int) $_POST['opdsThumbY'] : 36;
$opdsFeedSubtitle = isset($_POST['opdsFeedSubtitle']) ? $_POST['opdsFeedSubtitle'] : $l->t("%s OPDS catalog", $defaults->getName());
$opdsIsbndbKey = isset($_POST['opdsIsbndbKey']) ? $_POST['opdsIsbndbKey'] : '';
$opdsGoogleKey = isset($_POST['opdsGoogleKey']) ? $_POST['opdsGoogleKey'] : '';
Config::setApp('cover-x', $opdsCoverX);
Config::setApp('cover-y', $opdsCoverY);
@ -33,6 +34,7 @@ if (isset($_POST['opdsCoverX'])) {
Config::setApp('thumb-y', $opdsThumbX);
Config::setApp('feed_subtitle', $opdsFeedSubtitle);
Config::setApp('isbndb-key', $opdsIsbndbKey);
Config::setApp('google-key', $opdsGoogleKey);
} else {
// set preview preferences
$opdsPreviewEpub = $_POST['opdsPreviewEpub'];