970
个编辑
Economy666(讨论 | 贡献) 小 (修复一处小问题,希望没事) |
Economy666(讨论 | 贡献) 小 (忽略song.deleted) |
||
第368行: | 第368行: | ||
if indexTyped == "id" then | if indexTyped == "id" then | ||
for i, k in ipairs(json['songs']) do | for i, k in ipairs(json['songs']) do | ||
if k['id'] == index then info = k end | if not k.deleted and k['id'] == index then info = k break end | ||
end | end | ||
else | else | ||
for i, k in ipairs(json['songs']) do | for i, k in ipairs(json['songs']) do | ||
if string.lower(k['title_localized']['en']) == string.lower(index) then info = k end | if not k.deleted and string.lower(k['title_localized']['en']) == string.lower(index) then info = k break end | ||
end | end | ||
end | end |
个编辑