mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-31 14:37:59 +00:00
Merge pull request #208 from MilhouseVH/dtool_fix
distro-tool: treat 350 status as valid for ftp
This commit is contained in:
commit
f2ed0d9f0d
@ -274,7 +274,12 @@ class MyUtility(object):
|
||||
MyUtility.logmsg(msgs, 3, "[\n%s]" % headers)
|
||||
|
||||
# Success if HTTP 200
|
||||
result = True if MyUtility.search_HTTP_OK.search(headers) else False
|
||||
if http_code == "200" or MyUtility.search_HTTP_OK.search(headers):
|
||||
result = True
|
||||
elif http_code == "350" and url.startswith("ftp:"):
|
||||
result = True
|
||||
else:
|
||||
result = False
|
||||
|
||||
tDelta = (datetime.datetime.now() - ts)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user