From b2548a1f0b3ca78d3a2f3cc7142b994ee0c6d285 Mon Sep 17 00:00:00 2001 From: ailurux Date: Tue, 8 Oct 2024 15:38:39 +1100 Subject: Fixed issue with saving positions, and only auto-resume long-form content --- lua/browser.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lua/browser.lua') diff --git a/lua/browser.lua b/lua/browser.lua index d4fe759f..a83a26c4 100644 --- a/lua/browser.lua +++ b/lua/browser.lua @@ -94,9 +94,9 @@ return screen:new { end local get_icon_func = nil - local show_listened = self.mediatype == database.MediaTypes.Audiobook or + local longform_content = self.mediatype == database.MediaTypes.Audiobook or self.mediatype == database.MediaTypes.Podcast - if show_listened then + if longform_content then get_icon_func = function(item) local contents = item:contents() if type(contents) == "userdata" then @@ -128,7 +128,7 @@ return screen:new { else queue.clear() local track = database.track_by_id(contents) - if (track) then + if (track and longform_content) then queue.play_from(track.filepath, track.saved_position) else queue.add(contents) -- cgit v1.2.3