mirror of
https://github.com/standardebooks/web.git
synced 2025-07-14 10:31:59 -04:00
Update ebooks to explode the ./src/epub folder into ebook endpoints, instead of just exploding the whole epub
This commit is contained in:
parent
d9ac7312c2
commit
73ba658a05
7 changed files with 20 additions and 19 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue