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

@ -100,7 +100,7 @@ class Data extends Base {
$textData = "&data=" . $idData;
}
if (preg_match ('/^\//', $config['calibre_directory']))
if (preg_match ('/^\//', $config['calibre_directory']) || ($type == "epub" && $config['cops_update_epub-metadata']))
{
if ($type != "jpg") $textData .= "&type=" . $type;
return new Link ("fetch.php?id=$book->id" . $textData, $mime, $rel, $title);