fix ricerca guardaserieicu, prova timeout globale (requests)

This commit is contained in:
marco
2021-11-15 19:51:21 +01:00
parent b62c616693
commit 6f294c99bf
7 changed files with 20 additions and 10 deletions
+3 -2
View File
@@ -2,10 +2,10 @@
# ------------------------------------------------------------
# Canale per StreamingCommunity
# ------------------------------------------------------------
import functools
import json, requests, sys
from channels.mediasetplay import Token
from core import support, channeltools
from core import support, channeltools, httptools
from platformcode import logger
@@ -15,6 +15,7 @@ def findhost(url):
host = support.config.get_channel_url(findhost)
session = requests.Session()
session.request = functools.partial(session.request, timeout=httptools.HTTPTOOLS_DEFAULT_DOWNLOAD_TIMEOUT)
headers = {}
def getHeaders(forced=False):