684
次編輯
InvalidData(留言 | 貢獻) 小 (修复读取错误) |
InvalidData(留言 | 貢獻) 小 (完成(?) |
||
行 9: | 行 9: | ||
local prefList = p.getList() | local prefList = p.getList() | ||
local allList = {} | local allList = {} | ||
local repTimes = 0 | local repTimes = 0 | ||
local repSongs = 0 | local repSongs = 0 | ||
for i = 1,#prefList,1 do | for i = 1,#prefList,1 do | ||
行 22: | 行 20: | ||
if allList[curSong] then -- when repeat | if allList[curSong] then -- when repeat | ||
repTimes = repTimes + 1 | repTimes = repTimes + 1 | ||
if | if allList[curSong] == 1 then -- when not first repeat | ||
repSongs = repSongs + 1 | repSongs = repSongs + 1 | ||
end | end | ||
allList[curSong] = allList[curSong] + 1 | |||
else -- when not repeat | else -- when not repeat | ||
allList[curSong] = 1 | |||
allList[ | |||
end | end | ||
end | end |
次編輯