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:
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user