Replace GetEbooksFromFilesystem with a DB implementation

This commit is contained in:
Mike Colagrosso 2024-07-13 16:49:48 -06:00 committed by Alex Cabal
parent 364a2ca78f
commit f4a19a2d12
3 changed files with 6 additions and 75 deletions

View file

@ -104,7 +104,7 @@ function CreateZip(string $filePath, array $ebooks, string $type, string $webRoo
}
// Iterate over all ebooks and arrange them by publication month
foreach(Library::GetEbooksFromFilesystem($webRoot) as $ebook){
foreach(Library::GetEbooks() as $ebook){
$timestamp = $ebook->EbookCreated->format('Y-m');
$updatedTimestamp = $ebook->EbookUpdated->getTimestamp();

View file

@ -89,7 +89,7 @@ foreach($dirs as $dir){
}
// Iterate over all ebooks to build the various feeds.
foreach(Library::GetEbooksFromFilesystem($webRoot) as $ebook){
foreach(Library::GetEbooks() as $ebook){
$allEbooks[] = $ebook;
$newestEbooks[] = $ebook;