Update ebooks to explode the ./src/epub folder into ebook endpoints, instead of just exploding the whole epub

This commit is contained in:
Alex Cabal 2020-10-13 14:28:32 -05:00
parent d9ac7312c2
commit 73ba658a05
7 changed files with 20 additions and 19 deletions

View file

@ -22,7 +22,7 @@ foreach($contentFiles as $path){
if($path == '')
continue;
$ebookWwwFilesystemPath = preg_replace('|/src/.+|ius', '', $path) ?? '';
$ebookWwwFilesystemPath = preg_replace('|/content\.opf|ius', '', $path) ?? '';
$ebook = new Ebook($ebookWwwFilesystemPath);
$allEbooks[$ebook->ModifiedTimestamp->format('Y-m-d\TH:i:s\Z') . ' ' . $ebook->Identifier] = $ebook;