Irgoriere day wenn 00 in myfigurecollection.lua

This commit is contained in:
Akamaru 2015-12-12 23:27:30 +01:00
parent 62165937ec
commit 5576ec3af8

View File

@ -3,8 +3,12 @@ do
local makeOurDate = function(dateString)
local pattern = "(%d+)%-(%d+)%-(%d+)"
local year, month, day = dateString:match(pattern)
if day == "00" then
return month..'.'..year
else
return day..'.'..month..'.'..year
end
end
local function get_info(name)
local url = 'http://myfigurecollection.net/api.php?type=json&mode=collection&username='..name