66 379
contributi
mNessun oggetto della modifica |
mNessun oggetto della modifica |
||
Riga 136: | Riga 136: | ||
local SeriesShort | local SeriesShort | ||
local Characters = {} | local Characters = {} | ||
local PagesList | |||
if not Item then | if not Item then | ||
Riga 186: | Riga 187: | ||
for _, Episode in ipairs(NewPages.results) do | for _, Episode in ipairs(NewPages.results) do | ||
for _, Character in ipairs(Episode.printouts.Personaggio) do | for _, Character in ipairs(Episode.printouts.Personaggio) do | ||
if Characters[Character | if Characters[Character] == nil then | ||
table.insert(Characters, Character | table.insert(Characters, Character) | ||
end | end | ||
end | end | ||
Riga 195: | Riga 194: | ||
if type(Characters) == 'table' and Characters ~= nil then | if type(Characters) == 'table' and Characters ~= nil then | ||
for _, Page in ipairs(Characters) do | |||
table.insert(PagesList, Page.fulltext) | |||
end | |||
--return p.RecurringList(Characters, Series) | --return p.RecurringList(Characters, Series) | ||
return #Characters .. " - " .. table.concat( | return #Characters .. " - " .. #Characters .. " - " .. table.concat(PagesList, ", ") | ||
else | else | ||
return "No table" | return "No table" |