Module:YouTubeSubscribers: Difference between revisions

Content deleted Content added
Trimmed redundancy, made code easier to read, and fixed a minor error from attempting to escape a character with a backslash like in Regex. If this edit somehow breaks Wikipedia, please inform me via trout.
Line 238:
end
else
subCount = -404
error("Could not find a single best YouTube channel ID for this item. Add a YouTube channel ID or set the rank of one channel ID to be preferred")
end
if subCount then
Line 250:
local status, obj = pcall(p.subCount, frame)
if status then
if obj >= 0 then
return frame:expandTemplate{title="Format price", args = {obj}}
else
return obj
end
else
return returnError(frame, obj)