Ignoriere 00 Tage/Monate in MyAnimeList
This commit is contained in:
		| @@ -21,7 +21,13 @@ end | ||||
| local makeOurDate = function(dateString) | ||||
|   local pattern = "(%d+)%-(%d+)%-(%d+)" | ||||
|   local year, month, day = dateString:match(pattern) | ||||
|   if day == "00" then | ||||
|   return month..'.'..year | ||||
|   elseif month == "00" then | ||||
|   return year | ||||
|   else | ||||
|   return day..'.'..month..'.'..year | ||||
|   end | ||||
| end | ||||
|  | ||||
| local function get_anime_info(anime) | ||||
| @@ -50,7 +56,7 @@ local function send_anime_data(result, receiver) | ||||
|   end | ||||
|    | ||||
|   if xml.find(result, 'english')[1] then | ||||
|     eng = '; '..unescape(delete_tags(xml.find(result, 'english')[1])) | ||||
|     eng = '\nEnglisch: '..unescape(delete_tags(xml.find(result, 'english')[1])) | ||||
|   else | ||||
|     eng = '' | ||||
|   end | ||||
|   | ||||
| @@ -21,7 +21,13 @@ end | ||||
| local makeOurDate = function(dateString) | ||||
|   local pattern = "(%d+)%-(%d+)%-(%d+)" | ||||
|   local year, month, day = dateString:match(pattern) | ||||
|   if day == "00" then | ||||
|   return month..'.'..year | ||||
|   elseif month == "00" then | ||||
|   return year | ||||
|   else | ||||
|   return day..'.'..month..'.'..year | ||||
|   end | ||||
| end | ||||
|  | ||||
| local function get_manga_info(manga) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user