Fix a book reported by Mario. re #52
这个提交存在于:
父节点
2648b9310b
当前提交
e8cadd23d8
共有 1 个文件被更改,包括 8 次插入 和 1 次删除
|
@ -205,7 +205,14 @@ class EPub {
|
|||
*/
|
||||
public function componentContentType($comp) {
|
||||
$comp = $this->decodeComponentName ($comp);
|
||||
return $this->xpath->query("//opf:manifest/opf:item[@href='$comp']")->item(0)->getAttribute('media-type');
|
||||
$item = $this->xpath->query("//opf:manifest/opf:item[@href='$comp']")->item(0);
|
||||
if ($item) return $item->getAttribute('media-type');
|
||||
|
||||
// I had at least one book containing %20 instead of spaces in the opf file
|
||||
$comp = str_replace (" ", "%20", $comp);
|
||||
$item = $this->xpath->query("//opf:manifest/opf:item[@href='$comp']")->item(0);
|
||||
if ($item) return $item->getAttribute('media-type');
|
||||
return "application/octet-stream";
|
||||
}
|
||||
|
||||
private function getNavPointDetail ($node) {
|
||||
|
|
正在加载…
添加表格
添加链接
在新工单中引用