From 43f2509a563969a8f0b902fe7a0c1d30a4f27a92 Mon Sep 17 00:00:00 2001 From: mac12m99 <10120390+mac12m99@users.noreply.github.com> Date: Thu, 10 Jun 2021 17:15:59 +0200 Subject: [PATCH] resolverdns: non ripete la chiamata se andata in timeout Disattivati guardaseriecam e ilgeniodellostreaming_cam --- channels/guardaseriecam.json | 2 +- channels/ilgeniodellostreaming_cam.json | 2 +- core/resolverdns.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/channels/guardaseriecam.json b/channels/guardaseriecam.json index f0e78dfd..ccd7af1a 100644 --- a/channels/guardaseriecam.json +++ b/channels/guardaseriecam.json @@ -2,7 +2,7 @@ "id": "guardaseriecam", "name": "GuardaSerie Cam", "language": ["ita", "sub-ita"], - "active": true, + "active": false, "thumbnail": "https://raw.githubusercontent.com/32Dexter/DexterRepo/master/media/guardaserie_live.png", "banner": "", "categories": ["tvshow"], diff --git a/channels/ilgeniodellostreaming_cam.json b/channels/ilgeniodellostreaming_cam.json index f51f9627..78746f9b 100644 --- a/channels/ilgeniodellostreaming_cam.json +++ b/channels/ilgeniodellostreaming_cam.json @@ -1,7 +1,7 @@ { "id": "ilgeniodellostreaming_cam", "name": "IlGenioDelloStreaming CAM", - "active": true, + "active": false, "language": ["ita"], "thumbnail": "ilgeniodellostreaming.png", "banner": "ilgeniodellostreaming.png", diff --git a/core/resolverdns.py b/core/resolverdns.py index 8e87ecd2..325faf35 100644 --- a/core/resolverdns.py +++ b/core/resolverdns.py @@ -114,7 +114,7 @@ class CipherSuiteAdapter(host_header_ssl.HostHeaderSSLAdapter): ret = super(CipherSuiteAdapter, self).send(request, **kwargs) if 400 <= ret.status_code < 500: raise Exception - except Exception as e: + except (requests.exceptions.HTTPError, requests.exceptions.ConnectionError, requests.exceptions.SSLError) as e: logger.info('Request for ' + domain + ' with ip ' + ip + ' failed') logger.info(e) # if 'SSLError' in str(e):