Fixed updater

Contrast_Picker
Arcidayne 9 years ago
parent 04ea1d8585
commit 7196e19d37

@ -15,7 +15,7 @@
save_state="y" save_state="y"
date_written="2015-10-25 12:00:38" date_written="2015-10-25 12:00:38"
requires="4.00" requires="4.00"
version="2.1" version="2.2"
> >
<description trim="y"> <description trim="y">
<![CDATA[ <![CDATA[
@ -229,7 +229,7 @@ function update_plugin ()
async_ok, async = pcall (require, "async") async_ok, async = pcall (require, "async")
if async_ok then if async_ok then
plugin_page = async.doAsyncRemoteRequest(raw, function(retval, page, status, headers, full_status, request_url) if status == 200 then raw_version = tonumber(page:match('%s%s+version="([0-9%.]+)"', "HTTPS") plugin_page = async.doAsyncRemoteRequest(raw, function(retval, page, status, headers, full_status, request_url) if status == 200 then raw_version = tonumber(page:match('%s%s+version="([0-9%.]+)"') end end, "HTTPS")
end end
if raw_version == pversion then if raw_version == pversion then

Loading…
Cancel
Save