Allow metadata updating for epub. Disabled by default for now.

fix #18
This commit is contained in:
Sébastien Lucas 2013-01-02 21:50:44 +01:00
parent 11f4efb51d
commit 60df6f1c18
9 changed files with 1560 additions and 2 deletions

View file

@ -87,6 +87,12 @@
break;
}
$file = $book->getFilePath ($type, $idData, true);
if ($type == "epub" && $config['cops_update_epub-metadata'])
{
$book->getUpdatedEpub ($idData);
return;
}
header('Content-Disposition: attachment; filename="' . basename ($file) . '"');
header ($config['cops_x_accel_redirect'] . ": " . $config['calibre_internal_directory'] . $file);
?>