Minimal subsonic functionality

This commit is contained in:
Connor Johnstone
2026-03-20 20:04:35 -04:00
parent abe321a317
commit 621355e352
19 changed files with 2107 additions and 22 deletions

View File

@@ -560,16 +560,8 @@ pub fn playlists_page() -> Html {
if existing_ids.contains(&t.id) {
return false;
}
let title_lower = t
.title
.as_deref()
.unwrap_or("")
.to_lowercase();
let artist_lower = t
.artist
.as_deref()
.unwrap_or("")
.to_lowercase();
let title_lower = t.title.as_deref().unwrap_or("").to_lowercase();
let artist_lower = t.artist.as_deref().unwrap_or("").to_lowercase();
// Subsequence match on title or artist
let matches_field = |field: &str| {
let mut chars = search_query.chars();