diff options
| author | ailurux <ailuruxx@gmail.com> | 2024-10-08 15:38:39 +1100 |
|---|---|---|
| committer | ailurux <ailuruxx@gmail.com> | 2024-10-08 15:38:39 +1100 |
| commit | b2548a1f0b3ca78d3a2f3cc7142b994ee0c6d285 (patch) | |
| tree | f0a4ffbaf57ee8bbba84c88779a97d0a5e89c89b /lua/browser.lua | |
| parent | d27590f8a798465baf70df3e48b3562d916e8987 (diff) | |
| download | tangara-fw-b2548a1f0b3ca78d3a2f3cc7142b994ee0c6d285.tar.gz | |
Fixed issue with saving positions, and only auto-resume long-form content
Diffstat (limited to 'lua/browser.lua')
| -rw-r--r-- | lua/browser.lua | 6 |
1 files changed, 3 insertions, 3 deletions
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) |
