970
次編輯
Economy666(留言 | 貢獻) 小無編輯摘要 |
Economy666(留言 | 貢獻) 小無編輯摘要 |
||
行 7: | 行 7: | ||
local dot = frame:expandTemplate {title = '·'} | local dot = frame:expandTemplate {title = '·'} | ||
local categories = {'poprec', 'partner', 'original', 'variety', 'musicgames | local categories = {'poprec', 'partner', 'original', 'variety', 'musicgames'} | ||
local getCategory = {} | local getCategory = {} | ||
for i = 1, 5 do | for i = 1, 5 do | ||
行 27: | 行 27: | ||
for i, v in ipairs(songlist) do | for i, v in ipairs(songlist) do | ||
if v.set == 'single' then | if v.set == 'single' and nsId[v.id] then | ||
mobileId[v.id]= | mobileId[v.id] = true | ||
local cate = getCategory[v.category] | local cate = getCategory[v.category] | ||
songs[cate].ns[#songs[cate].ns + 1] = v | songs[cate].ns[#songs[cate].ns + 1] = v | ||
行 38: | 行 38: | ||
if not mobileId[v.id] then | if not mobileId[v.id] then | ||
-- 硬编码 gengaozo 等 | -- 硬编码 gengaozo 等 | ||
songs[ | songs[4].ns[#songs[4].ns+1] = v | ||
end | end | ||
end | end | ||
end | end | ||
local categoryNames = {'流行/推荐', '搭档', '原创', '综合', '音乐游戏 | local categoryNames = {'流行/推荐', '搭档', '原创', '综合', '音乐游戏'} | ||
local final = {} | local final = {} | ||
for i, v in pairs(frame.args) do | for i, v in pairs(frame.args) do |
次編輯