6,354
次編輯
小無編輯摘要 |
小無編輯摘要 |
||
行 39: | 行 39: | ||
for i=1,250 do | for i=1,250 do | ||
if json['songs'][i]==nil then break end | if json['songs'][i]==nil then break end | ||
s=json['songs'][i]['title_localized']['en'] | if args['type']=="id" then | ||
s=json['songs'][i]['title_localized']['en'] | |||
else | |||
s=json['songs'][i]['id'] | |||
end | |||
list[s]=json['songs'][i] | list[s]=json['songs'][i] | ||
end | end |