Forum Discussion
EnTerr
15 years agoRoku Guru
"lucasgonze" wrote:
EnTerr, the way I got this done so quickly was that I happened to have a slice of free time right when this topic came up. But today I'm busy again. So if you can help get the code written for the new arg style I'm happy to make the change (or support both argument styles for the sake of "legacy" code).
My current source code is here: http://pastebin.com/n6v6VCPT
Ok, how about this (oops, i pasted it in pasta-bin too):
if( params["trackIDs"] <> invalid ) then
tidStr = params["trackIDs"] + " " 'extra space to simplify handling in loop
playlist = []
i = instr(1, tidStr, " ")
while i>0
digested = ecp_digest_trackID(left(tidStr, i-1))
if( digested <> invalid ) playlist.push(digested)
tidStr = mid(tidStr, i+1)
i = instr(1, tidStr, " ")
end while
end if