diff options
| author | ailurux <ailurux@noreply.codeberg.org> | 2025-02-05 04:56:06 +0000 |
|---|---|---|
| committer | ailurux <ailurux@noreply.codeberg.org> | 2025-02-05 04:56:06 +0000 |
| commit | 407c2f36f5dd6971d588f76ba5e426240f6c4131 (patch) | |
| tree | 811cc15ce41b7a086bf6e82dd4cbbd9b9674f135 /lua/file_browser.lua | |
| parent | ebadc83f785da9a24cdcaba774613a1cebfb084d (diff) | |
| parent | 342726a9fc432650adb2e2de16fed02654f4d30d (diff) | |
| download | tangara-fw-407c2f36f5dd6971d588f76ba5e426240f6c4131.tar.gz | |
Merge pull request 'Playlist Browser' (#228) from slord/tangara-fw:playlist-browser into main
Reviewed-on: https://codeberg.org/cool-tech-zone/tangara-fw/pulls/228
Diffstat (limited to 'lua/file_browser.lua')
| -rw-r--r-- | lua/file_browser.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lua/file_browser.lua b/lua/file_browser.lua index 98261d55..6289828f 100644 --- a/lua/file_browser.lua +++ b/lua/file_browser.lua @@ -8,11 +8,11 @@ local backstack = require("backstack") local font = require("font") local queue = require("queue") local playing = require("playing") -local styles = require("styles") local playback = require("playback") local theme = require("theme") local screen = require("screen") local filesystem = require("filesystem") +local playlist_iterator = require("playlist_iterator") return screen:new { create_ui = function(self) @@ -70,8 +70,7 @@ return screen:new { breadcrumb = item:filepath() }) elseif - item:filepath():match("%.playlist$") or - item:filepath():match("%.m3u8?$") then + playlist_iterator:is_playlist(item) then queue.open_playlist(item:filepath()) playback.playing:set(true) backstack.push(playing:new()) |
