From c479d699d059bc58e6850d43b14f2e91c2076e12 Mon Sep 17 00:00:00 2001 From: ailurux Date: Tue, 17 Sep 2024 14:13:05 +1000 Subject: Implements seeking to saved position for tracks --- lua/browser.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lua') diff --git a/lua/browser.lua b/lua/browser.lua index 731c1dc6..3d7e3e9d 100644 --- a/lua/browser.lua +++ b/lua/browser.lua @@ -105,8 +105,10 @@ return screen:new{ local track = database.track_by_id(contents) if (track) then print("Track saved position: ", track.saved_position) + queue.play_from(track.filepath, track.saved_position) + else + queue.add(contents) end - queue.add(contents) playback.playing:set(true) backstack.push(playing:new()) end -- cgit v1.2.3