Module:TVChannelList: Difference between revisions
Content deleted Content added
PeaceDeadC (talk | contribs) No edit summary |
PeaceDeadC (talk | contribs) No edit summary |
||
Line 118:
end
table.insert(modulesToTry, name:sub(1, 1):upper())
Line 127 ⟶ 126:
local matchedChannels = {}
-- Check redirects
if channelModule.redirects and channelModule.redirects[name:lower()] then
return getChannel(channelModule.redirects[name:lower()])
end
--
for _, channel in pairs(channelModule.channels) do
if channel.name:lower() == name:lower() or
Line 140 ⟶ 139:
end
if #matchedChannels > 1 then
return nil, i18n.errors.duplicateChannels
| |||