actually use your own library silly

This commit is contained in:
Rose Liverman 2021-09-29 13:34:02 -06:00
parent 8298b99fe9
commit 08372b05d7

View File

@ -33,7 +33,8 @@ local funkwhale = arg[2]
local results = music.random(count, nil, nil, {downloaded = true, searched = true}) local results = music.random(count, nil, nil, {downloaded = true, searched = true})
local track local track
for _,v in ipairs(results) do for _,v in ipairs(results) do
track = music.data[v].names[1] track = music.name(v) -- music.data[v].names[1]
if not track then print("Track '" .. v .. "' does not exist?") end -- shouldn't happen
if urlencode then if urlencode then
track = urlencode.encode_url(track) track = urlencode.encode_url(track)
else else