diff options
| author | jacqueline <me@jacqueline.id.au> | 2024-09-06 12:39:53 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2024-09-06 12:39:53 +1000 |
| commit | 0426dfd4f21861297850905bf27158659f9d959a (patch) | |
| tree | 1ad543a1b30e4f4f82e6000b6209e56bc05df19f /lua/file_browser.lua | |
| parent | 99a3a904e4d9cc2e4d92edbbf1ebbd0892d3918e (diff) | |
| download | tangara-fw-0426dfd4f21861297850905bf27158659f9d959a.tar.gz | |
Support opening m3u and m3u8 files as playlists
Diffstat (limited to 'lua/file_browser.lua')
| -rw-r--r-- | lua/file_browser.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lua/file_browser.lua b/lua/file_browser.lua index b9c31d62..a79cc7f0 100644 --- a/lua/file_browser.lua +++ b/lua/file_browser.lua @@ -65,7 +65,9 @@ return screen:new { iterator = filesystem.iterator(item:filepath()), breadcrumb = item:filepath() }) - elseif item:filepath():match("%.playlist$") then + elseif + item:filepath():match("%.playlist$") or + item:filepath():match("%.m3u$") then queue.open_playlist(item:filepath()) playback.playing:set(true) backstack.push(playing:new()) |
