mirror of
https://github.com/mbirth/tcl_ota_check.git
synced 2024-11-09 22:06:47 +00:00
Increase max_tries when scanning for updates.
This commit is contained in:
parent
111286dc6e
commit
f0c5c94ce9
@ -27,7 +27,7 @@ with open("prds.txt", "rt") as f:
|
|||||||
try:
|
try:
|
||||||
fc.reset_session()
|
fc.reset_session()
|
||||||
fc.curef = prd
|
fc.curef = prd
|
||||||
check_xml = fc.do_check()
|
check_xml = fc.do_check(max_tries=20)
|
||||||
curef, fv, tv, fw_id, fileid, fn, fsize, fhash = fc.parse_check(check_xml)
|
curef, fv, tv, fw_id, fileid, fn, fsize, fhash = fc.parse_check(check_xml)
|
||||||
txt_tv = tv
|
txt_tv = tv
|
||||||
if tv != lastver:
|
if tv != lastver:
|
||||||
|
@ -33,7 +33,7 @@ with open("prds.txt", "r") as f:
|
|||||||
fc.reset_session()
|
fc.reset_session()
|
||||||
fc.curef = prd
|
fc.curef = prd
|
||||||
fc.fv = lastver
|
fc.fv = lastver
|
||||||
check_xml = fc.do_check()
|
check_xml = fc.do_check(max_tries=20)
|
||||||
curef, fv, tv, fw_id, fileid, fn, fsize, fhash = fc.parse_check(check_xml)
|
curef, fv, tv, fw_id, fileid, fn, fsize, fhash = fc.parse_check(check_xml)
|
||||||
print("{}: {} ⇨ {} {} ({})".format(prd, fv, tv, fhash, model))
|
print("{}: {} ⇨ {} {} ({})".format(prd, fv, tv, fhash, model))
|
||||||
except RequestException as e:
|
except RequestException as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user