Prevent displaying playlists without videos

This commit is contained in:
Chocobozzz 2022-12-20 15:29:33 +01:00
parent 6d0fcc6274
commit f7eb829b5c
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 7 additions and 0 deletions

View File

@ -277,6 +277,7 @@
.button-link-container { .button-link-container {
text-align: left; text-align: left;
margin-top: 1.5rem;
} }
} }
} }

View File

@ -34,6 +34,12 @@ async function queryPlaylists (search: PlaylistsSearchQuery) {
}) })
} }
mustNot.push({
term: {
videosLength: 0
}
})
if (search.host) { if (search.host) {
filter.push({ filter.push({
term: { term: {