[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.

Re-add play/skip increments

Kasper (Sep 26, 2024, 3:20 AM +0200) d5210132 a7de040b

+8 -9
+8 -9
src/lib/data.ts
··· 224 224 return call((addon) => addon.save()) 225 225 }, 226 226 addPlay: (id: TrackID) => { 227 - // call((data) => data.add_play(id)) 228 - // page.refresh_ids_and_keep_selection() 229 - // methods.save() 227 + call((data) => data.add_play(id)) 228 + tracklist_items_updated.emit() 229 + methods.save() 230 230 }, 231 231 addSkip: (id: TrackID) => { 232 - // call((data) => data.add_skip(id)) 233 - // page.refresh_ids_and_keep_selection() 234 - // methods.save() 232 + call((data) => data.add_skip(id)) 233 + tracklist_items_updated.emit() 234 + methods.save() 235 235 }, 236 236 addPlayTime: (id: TrackID, start_time: MsSinceUnixEpoch, duration_ms: number) => { 237 - // call((data) => data.add_play_time(id, start_time, duration_ms)) 238 - // page.refresh_ids_and_keep_selection() 239 - // methods.save() 237 + call((data) => data.add_play_time(id, start_time, duration_ms)) 238 + methods.save() 240 239 }, 241 240 readCoverAsync(id: TrackID, index: number) { 242 241 return inner_addon.read_cover_async(id, index).catch((error) => {