summaryrefslogtreecommitdiff
path: root/lua/file_browser.lua
diff options
context:
space:
mode:
authorailurux <ailurux@noreply.codeberg.org>2024-09-06 03:52:23 +0000
committerailurux <ailurux@noreply.codeberg.org>2024-09-06 03:52:23 +0000
commit067069bf3bce5945a8ad8af738dd604d31b2d9a4 (patch)
treed32be50f6ebb874a910808dbcaf25c095899b01e /lua/file_browser.lua
parent99a3a904e4d9cc2e4d92edbbf1ebbd0892d3918e (diff)
parentd0f70787b1686adf48858b94b6187433659549c9 (diff)
downloadtangara-fw-067069bf3bce5945a8ad8af738dd604d31b2d9a4.tar.gz
Merge pull request 'Support m3u(8) files as playlists, ignoring any comment lines' (#98) from jqln/playlist-cleanip into main
Reviewed-on: https://codeberg.org/cool-tech-zone/tangara-fw/pulls/98
Diffstat (limited to 'lua/file_browser.lua')
-rw-r--r--lua/file_browser.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/lua/file_browser.lua b/lua/file_browser.lua
index b9c31d62..0ccd2c13 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("%.m3u8?$") then
queue.open_playlist(item:filepath())
playback.playing:set(true)
backstack.push(playing:new())