From bffe46732186a785f89a1e01acfc67dd7720570a Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 1 Jul 2023 10:41:20 -0400 Subject: [PATCH] return more metadata in search result --- catalog/api.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/catalog/api.py b/catalog/api.py index 9c5d1dc1..240dd107 100644 --- a/catalog/api.py +++ b/catalog/api.py @@ -10,7 +10,16 @@ from .search.models import enqueue_fetch, query_index class SearchResult(Schema): - data: List[ItemSchema] + data: List[ + EditionSchema + | MovieSchema + | TVShowSchema + | TVSeasonSchema + | AlbumSchema + | PodcastSchema + | GameSchema + | PerformanceSchema + ] pages: int count: int