Experiment to rebuild Diffuse using web applets.
0
fork

Configure Feed

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

fix: improve webamp reload behaviour

+9 -3
+9 -3
src/scripts/theme/webamp/index.ts
··· 52 52 if (inserting) return; 53 53 inserting = true; 54 54 const tracks = await loadTracks(); 55 - // TODO: Webamp shouldn't stop playing the active track whenever the playlist changes. 56 - amp.setTracksToPlay([]); 55 + 56 + // TODO: This kinda messes up the UI, 57 + // but at least the active audio doesn't stop playing. 58 + amp.store.dispatch({ type: "REMOVE_ALL_TRACKS" }); 59 + 57 60 // TODO: Webamp blows up if you add too much tracks 58 61 amp.appendTracks(tracks.slice(0, 1000)); 59 - amp.nextTrack(); 62 + 63 + const status = amp.getMediaStatus(); 64 + if (status !== "PLAYING") amp.nextTrack(); 65 + 60 66 inserting = false; 61 67 } 62 68