X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/3d1fb545dd1f49e0624d3adf20e5568b1c33d8ec..32e27db91137094ff6b8ebb4154cb44addb837e2:/apps/api/handlers.py?ds=inline diff --git a/apps/api/handlers.py b/apps/api/handlers.py index 76de8c6a3..832f34f0b 100644 --- a/apps/api/handlers.py +++ b/apps/api/handlers.py @@ -66,7 +66,7 @@ class CatalogueHandler(BaseHandler): elif field in ('mp3', 'ogg', 'daisy'): media = [] - for m in book.medias.filter(type=''): + for m in book.media.filter(type=field): files.append({ 'url': m.file.get_absolute_url(), 'size': m.file.size,