Skip to content

A self-hosted media server and file management system

fix: Media search query prevents playback of hidden files Fixes #290

aminnausin151386099e82
diff --git a/resources/js/stores/ContentStore.ts b/resources/js/stores/ContentStore.ts
index 25202210..83ef0a98 100644
--- a/resources/js/stores/ContentStore.ts
+++ b/resources/js/stores/ContentStore.ts
@@ -130,11 +130,12 @@ export const useContentStore = defineStore('Content', () => {
function playlistFind(queryId?: number): boolean {
let result: VideoResource | undefined;
+ // select based on the canonical list from the stateFolder rather than the user filtered playlist
if (Number.isFinite(queryId)) {
- result = stateFilteredPlaylist.value.find((media) => media.id === queryId);
+ result = stateFolder.value.videos.find((media) => media.id === queryId);
} else {
// the default is the first video in the list
- result = stateFilteredPlaylist.value[0];
+ result = stateFolder.value.videos[0];
}
// Media matching query not found or no media in playlist in the first place