Use the same method to get Genres / Types / Categories

This commit is contained in:
Gilles Crettenand
2015-06-02 16:04:41 +02:00
parent 56331d2737
commit 644361058e
2 changed files with 13 additions and 33 deletions

View File

@@ -503,9 +503,9 @@ class NetBiblio extends WebService
public function ListOfTypes()
{
return array_filter(AudioBook::listOfTypes(), function ($t) {
return strlen($t) > 0;
});
return array_map(function($g) {
return $g['text'];
}, AudioBook::ListOfGenres(true));
}
public function InReadingBooks()