1
0
Fork 0
mirror of https://github.com/fastogt/fastocloud_admin.git synced 2025-03-09 23:38:52 +00:00

Change url http timeout

This commit is contained in:
topilski 2019-08-24 02:12:25 -04:00
parent 1515274879
commit d845a494cb

View file

@ -96,7 +96,7 @@ class ServiceView(FlaskView):
tvg_logo = file['tvg-logo'] tvg_logo = file['tvg-logo']
if len(tvg_logo) < constants.MAX_URL_LENGTH: if len(tvg_logo) < constants.MAX_URL_LENGTH:
if is_valid_http_url(tvg_logo): if is_valid_http_url(tvg_logo, timeout=0.1):
stream.tvg_logo = tvg_logo stream.tvg_logo = tvg_logo
stream.save() stream.save()
streams.append(stream) streams.append(stream)