Add collections and authors RSS/Atom/OPDS feeds

This commit is contained in:
Alex Cabal 2022-07-11 16:54:53 -05:00
parent e19847adac
commit 05e0f77b45
19 changed files with 280 additions and 142 deletions

View file

@ -322,7 +322,10 @@ class Library{
* @return array<string, array<int|string, array<int|string, mixed>>>
*/
public static function RebuildBulkDownloadsCache(): array{
$collator = collator_create( 'en_US' ); // Used for sorting letters with diacritics like in author names
$collator = Collator::create('en_US'); // Used for sorting letters with diacritics like in author names
if($collator === null){
throw new Exceptions\SeException('Couldn\'t create collator object when rebuilding bulk download cache.');
}
$months = [];
$subjects = [];
$collections = [];