8,957
edits
No edit summary |
No edit summary |
||
Line 24: | Line 24: | ||
-- Главная функция | -- Главная функция | ||
function p. | function p.getAlbumForSong(songTitle) | ||
local page = mw.title.getCurrentTitle().text | local page = mw.title.getCurrentTitle().text | ||
local year = string.match(page, '%.(%d%d%d%d)$') | local year = string.match(page, '%.(%d%d%d%d)$') | ||
local data = mw.loadData('Module:Setlist/Songs') | local data = mw.loadData('Module:Setlist/Songs') | ||
Line 39: | Line 35: | ||
end | end | ||
if conflictSongs[songTitle] and year then | |||
if conflictSongs[songTitle] then | |||
if rabYears[year] then | if rabYears[year] then | ||
return {"Regional At Best"} | return {"Regional At Best"} | ||
elseif vesselYears[year] then | elseif vesselYears[year] then | ||
return {"Vessel"} | return {"Vessel"} | ||
end | end | ||
end | end |