Module:YouTubeSubscribers: Difference between revisions

Content deleted Content added
test
new error condition
Line 206:
local e = getEntity(frame)
local chanId = getBestYtChanId(e)
returnif not chanId then
error("Could not find a single best YouTube account for this item. Add a YouTube channel ID or set the rank of one channel ID to preferred.")
end
local s = newestMatching(e, SUB_COUNT_PID, YT_CHAN_ID_PID, chanId)
if s then
Line 223 ⟶ 226:
return "{{Format date|" ..dateString .. "}}"
end
return chanId
 
--error("Could not find date for youtube subscriber information.")
end