More bug fixes

Contrast_Picker
Arcidayne 9 years ago
parent 69051df64c
commit bb563826fa

@ -66,6 +66,7 @@ function OnPluginInstall()
SetEpicDebug = 0
just_today = 0
not_found = 0
update_only = 1
PLUGIN_VERSION = GetPluginInfo(GetPluginID(), 19)
PLUGIN_NAME = GetPluginInfo(GetPluginID(), 1)
@ -84,7 +85,7 @@ end
-- Update code --
function update_plugin()
local raw = "https://raw.githubusercontent.com/Arcidayne/Aardwolf-Scripts/master/Epic_Calendar/Epic_Calendar.xml"
raw = "https://raw.githubusercontent.com/Arcidayne/Aardwolf-Scripts/master/Epic_Calendar/Epic_Calendar.xml"
async_ok, async = pcall (require, "async")
@ -184,10 +185,12 @@ function get_cal(epic)
calid = epic_list.all
elseif epic:lower() == "update" then
update_plugin()
update_only = 1
else
not_found = 1
end
if update_only == 0 then
if not_found == 0 then
offset_utc, string_offset = os.difftime(os.time(os.date("*t")), os.time(os.date("!*t"))), ""
@ -215,6 +218,7 @@ function get_cal(epic)
ColourNote("cyan", "", "Epic Calendar Error: ", "white", "", "Valid choices are: IF/Icefall, Inferno, OC, Genie, All, Today")
epage, starttime, summary, not_found = nil, nil, nil, 0
end
end
end
function get_results(retval, page, status, headers, full_status, request_url)

Loading…
Cancel
Save