From 7e49610d40ea240e67ddd60cd5facb44fb4fda90 Mon Sep 17 00:00:00 2001 From: marechenok Date: Mon, 6 Jun 2022 14:32:48 +0300 Subject: [PATCH] Increased timeout for api requests In case when there is a lot of data to load 10 sec is not enough --- .../enigma2/python/Plugins/Extensions/XStreamity/channels.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/XStreamity/usr/lib/enigma2/python/Plugins/Extensions/XStreamity/channels.py b/XStreamity/usr/lib/enigma2/python/Plugins/Extensions/XStreamity/channels.py index 57a3dace..da36c2ed 100644 --- a/XStreamity/usr/lib/enigma2/python/Plugins/Extensions/XStreamity/channels.py +++ b/XStreamity/usr/lib/enigma2/python/Plugins/Extensions/XStreamity/channels.py @@ -1102,7 +1102,7 @@ def downloadApiData(self, url): http.mount("http://", adapter) http.mount("https://", adapter) try: - r = http.get(url, headers=hdr, stream=True, timeout=10, verify=False) + r = http.get(url, headers=hdr, stream=True, timeout=60, verify=False) r.raise_for_status() if r.status_code == requests.codes.ok: try: