Module:YouTubeSubscribers: Difference between revisions

Content deleted Content added
more error messages
test
Line 207:
local chanId = getBestYtChanId(e)
if not chanId then
error("Could not find a single best YouTube accountchannel ID for this item. Add a YouTube channel ID or set the rank of one channel ID to be preferred")
end
local s = newestMatching(e, SUB_COUNT_PID, YT_CHAN_ID_PID, chanId)
Line 241:
end
else
error("Could not find a single best YouTube accountchannel ID for this item. Add a YouTube channel ID or set the rank of one channel ID to be preferred")
end
if subCount then
return tonumber(subCount)
else
return s
--error("Found an associated YouTube channel ID but could not find a subscriber count")
end
end