update: show category name instead of Movie/TV in quick search

For when there exists multiple categories of the same meta.
This commit is contained in:
Roardom
2025-03-10 11:41:16 +00:00
parent e1b6909967
commit b9dfd3e6dd

View File

@@ -90,7 +90,7 @@ class QuickSearchController extends Controller
'year' => $hit[$type]['year'],
'image' => $hit[$type]['poster'] ? tmdb_image('poster_small', $hit[$type]['poster']) : ($hit['name'][0] ?? '').($hit['name'][1] ?? ''),
'url' => route('torrents.similar', ['category_id' => $hit['category']['id'], 'tmdb' => $hit['tmdb']]),
'type' => $type === 'movie' ? 'Movie' : 'TV Series',
'type' => $hit['category']['name'],
];
} elseif ($hit['_federation']['indexUid'] === config('scout.prefix').'people') {
$results[] = [