[READ-ONLY] Mirror of https://github.com/probablykasper/kadium. App for staying ontop of YouTube channels' uploads kadium.kasper.space
linux macos notifications tauri windows youtube
0

Configure Feed

Select the types of activity you want to include in your feed.

Make search case insensitive, closes #10

Kasper (Jan 10, 2024, 7:20 AM +0100) 903f63ec 3c35432a

+7 -2
+1
CHANGELOG.md
··· 1 1 # Changelog 2 2 3 3 ## Next 4 + - Make search case insensitive 4 5 - Load 100 videos at a time instead of 50 5 6 - Allow selecting bottom row diagonally with the down arrow key 6 7
+1 -1
src-tauri/src/db.rs
··· 156 156 let mut wheres: Vec<&str> = Vec::new(); 157 157 let mut bindings: Vec<&str> = Vec::new(); 158 158 if options.channel_filter != "" { 159 - selects.push("INSTR(channelName, ?) channelFilter"); 159 + selects.push("INSTR(LOWER(channelName), LOWER(?)) channelFilter"); 160 160 wheres.push("channelFilter > 0"); 161 161 bindings.push(&options.channel_filter); 162 162 }
+5 -1
src/routes/channels/+page.svelte
··· 87 87 </header> 88 88 <div bind:this={channels_scroll_el} class="channels"> 89 89 {#each channels as channel, i} 90 - <div class="channel selectable" class:show={filter === '' || channel.name.includes(filter)}> 90 + {@const lowerName = channel.name.toLowerCase()} 91 + <div 92 + class="channel selectable" 93 + class:show={filter === '' || lowerName.includes(filter.toLowerCase())} 94 + > 91 95 <img src={channel.icon} alt="" /> 92 96 <div class="details"> 93 97 <a