- pd_authors = search_pd_authors(query)
- books = search_books(query)
- pictures = search_pictures(query)
+ if not (format or lang or epoch or kind or genre):
+ pd_authors = search_pd_authors(query)
+ else:
+ pd_authors = []
+ if not format or format != 'obraz':
+ books = search_books(
+ query,
+ lang=lang,
+ only_audio=format=='audio',
+ only_synchro=format=='synchro',
+ epoch=epoch,
+ kind=kind,
+ genre=genre
+ )
+ else:
+ books = []
+ if (not format or format == 'obraz') and not lang:
+ pictures = search_pictures(
+ query,
+ epoch=epoch,
+ kind=kind,
+ genre=genre
+ )
+ else:
+ pictures = []
+