[READ-ONLY] Mirror of https://github.com/probablykasper/ferrum. Music library app for Mac, Linux and Windows ferrum.kasper.space
electron linux macos music music-library music-player napi windows
0

Configure Feed

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

Fix cover reloading unnecessarily

Kasper (Sep 27, 2024, 7:42 AM +0200) 980dece7 76382303

+3 -1
+3 -1
src/lib/player.ts
··· 39 39 export const playing_track: Writable<Track | null> = writable(null) 40 40 export const playing_id = derived(queue, () => { 41 41 const current_id = queue.getCurrent()?.id 42 + return current_id 43 + }) 44 + playing_id.subscribe((current_id) => { 42 45 if (current_id) { 43 46 cover_src.newFromTrackId(current_id) 44 47 } 45 - return current_id 46 48 }) 47 49 let waiting_to_play = false 48 50 const media_session = navigator.mediaSession