Skip to content

A self-hosted media server and file management system

fix: explore spotlight will never show number of tracks because number of files take precedence

aminnausina33c9637f28d
diff --git a/resources/js/components/explore/ExploreSpotlight.vue b/resources/js/components/explore/ExploreSpotlight.vue
index 34c89b95..0719a4a7 100644
--- a/resources/js/components/explore/ExploreSpotlight.vue
+++ b/resources/js/components/explore/ExploreSpotlight.vue
@@ -45,8 +45,8 @@ const folderInfoTags = computed(() => {
const getCount = (title: string, value: number = activeFolder.value.file_count) => `${value} ${title}${toPlural(value)}`;
- if (!activeFolder.value.series?.seasons) return [getCount('File')];
if (activeFolder.value.is_majority_audio) return [getCount('Track')];
+ if (!activeFolder.value.series?.seasons) return [getCount('File')];
const tags = [getCount('Episode', activeFolder.value.series.episodes)];