index names now variable (#1115)

This commit is contained in:
Cameron Horn 2026-02-08 05:31:21 -05:00 committed by GitHub
parent c491e3654f
commit dbab82dfab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

@ -31,13 +31,13 @@ class SearchForm:
fulltext_results = []
if search_results:
for result in search_results:
if result["_index"] == "ta_video":
if result["_index"].startswith("ta_video"):
video_results.append(result)
elif result["_index"] == "ta_channel":
elif result["_index"].startswith("ta_channel"):
channel_results.append(result)
elif result["_index"] == "ta_playlist":
elif result["_index"].startswith("ta_playlist"):
playlist_results.append(result)
elif result["_index"] == "ta_subtitle":
elif result["_index"].startswith("ta_subtitle"):
fulltext_results.append(result)
all_results = {