Skip to content

Commit

Permalink
Update playlist-sort.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
samhippo authored May 23, 2020
1 parent 82cb5bb commit 1c68dac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions playlist-sort.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ end

local function main(type,asc)
local dt = nil
if(type == nil) then type = "name" end
if(asc == nil) then asc = "asc" end

if(type == "date") then
dt = getDate()
elseif(type == "size") then
Expand All @@ -59,6 +62,7 @@ local function main(type,asc)
mp.commandv('loadfile',n.filename,'append')
end
end
mp.osd_message("Playlist Sort: "..type.." "..asc)
end

mp.register_script_message("playlist-sort", main)

0 comments on commit 1c68dac

Please sign in to comment.