Support opening m3u and m3u8 files as playlists

This commit is contained in:
jacqueline
2024-09-06 12:39:53 +10:00
parent 99a3a904e4
commit 0426dfd4f2
+3 -1
View File
@@ -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())