跳到内容

Module:Sandbox/SongLink:修订间差异

添加94字节 、​ 2022年7月14日 (星期四)
fix same name song
(同名曲判断)
(fix same name song)
 
第46行: 第46行:
    local song = nil
    local song = nil
    local hasBeyondSpecialName = false
    local hasBeyondSpecialName = false
   local isNotSameNameSong = n[songName] == nil
    for i,k in pairs(songList) do
    for i,k in pairs(songList) do
      if k.id == songName then
      if k.id == songName then
第51行: 第53行:
        break
        break
      end
      end
      if k.title_localized.en == songName then
      if isNotSameNameSong and k.title_localized.en == songName then
        song = k
        song = k
        break
        break
      end
      end
      if k.difficulties[4] and k.difficulties[4].title_localized
      if isNotSameNameSong and k.difficulties[4] and k.difficulties[4].title_localized
        and k.difficulties[4].title_localized.en == songName then
        and k.difficulties[4].title_localized.en == songName then
          hasBeyondSpecialName = true
          hasBeyondSpecialName = true
134

个编辑