fix ricerca guardaserieicu, prova timeout globale (requests)
This commit is contained in:
+4
-1
@@ -2,14 +2,17 @@
|
||||
# ------------------------------------------------------------
|
||||
# Canale per vvvvid
|
||||
# ----------------------------------------------------------
|
||||
import functools
|
||||
|
||||
import requests, sys, inspect
|
||||
from core import jsontools, support, tmdb
|
||||
from core import jsontools, support, tmdb, httptools
|
||||
from platformcode import autorenumber, logger, config
|
||||
|
||||
host = support.config.get_channel_url()
|
||||
|
||||
# Creating persistent session
|
||||
current_session = requests.Session()
|
||||
current_session.request = functools.partial(current_session.request, timeout=httptools.HTTPTOOLS_DEFAULT_DOWNLOAD_TIMEOUT)
|
||||
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.82 Safari/537.36'}
|
||||
|
||||
# Getting conn_id token from vvvvid and creating payload
|
||||
|
||||
Reference in New Issue
Block a user