Upgrade to latest php-epub-meta

This commit is contained in:
Sébastien Lucas 2013-03-19 21:16:39 +01:00
parent 99454bd562
commit 012ffb9bf0
2 changed files with 103 additions and 55 deletions

View file

@ -81,13 +81,21 @@ class EPub {
$this->zip->Close ();
}
public function cleanITunesCrap () {
if ($this->zip->FileExists("iTunesMetadata.plist")) {
$this->zip->FileReplace ("iTunesMetadata.plist", false);
}
if ($this->zip->FileExists("iTunesArtwork")) {
$this->zip->FileReplace ("iTunesArtwork", false);
}
}
/**
* Writes back all meta data changes
* TODO update
*/
public function save(){
$this->download ();
$zip->close();
$this->zip->close();
}
/**
@ -413,7 +421,6 @@ class EPub {
}
}
public function Cover2($path=false, $mime=false){
$hascover = true;
$item = $this->getCoverItem ();