Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mp = require 'mp'
- function main()
- pls = ${playlist}
- plsOutput = {"", "", "", "", "", "", "", "", "", "", ""}
- curVid = ${filename}
- working = true
- index = 1
- repeat
- if(curVid == pls[index])
- then
- working = false
- for a=-5,5
- do plsOutput[a+6] = pls[index + a]
- end
- end
- index = index + 1
- until (working == false)
- for a=1,11
- do
- if (plsOutput[a] == nil)
- then
- else
- if (plsOutput[a] == curVid)
- then
- mp.osd_message(">"..plsOutput[a].."<")
- else
- mp.osd_message(" "..plsOutput[a])
- end
- end
- end
- end
- mp.add_key_binding("y", "pls", main)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement