daniel/playlist-queue (#84)

Support for playlist files being opened along side the queue's own playlist. Playlists can be opened from the file browser, if the file ends in ".playlist" (will add support for .m3u as well eventually)

Reviewed-on: https://codeberg.org/cool-tech-zone/tangara-fw/pulls/84
Co-authored-by: ailurux <ailuruxx@gmail.com>
Co-committed-by: ailurux <ailuruxx@gmail.com>
This commit is contained in:
ailurux
2024-07-30 04:36:48 +00:00
committed by cooljqln
parent 64c8496a91
commit b349599174
9 changed files with 181 additions and 101 deletions
+6 -2
View File
@@ -62,10 +62,14 @@ return screen:new{
if is_dir then
backstack.push(require("file_browser"):new{
title = self.title,
iterator = filesystem.iterator(tostring(item)),
breadcrumb = tostring(item)
iterator = filesystem.iterator(item:filepath()),
breadcrumb = item:filepath()
})
end
if item:filepath():match("%.playlist$") then
queue.open_playlist(item:filepath())
backstack.push(playing:new())
end
end
end
})