diff --git a/main.py b/main.py index bacfec6..8dff8d6 100644 --- a/main.py +++ b/main.py @@ -223,8 +223,7 @@ def gettoken(proxy, r=2): try: proxy_str = db.get_proxy(proxy) url = 'https://graphql.api.dailymotion.com/oauth/token' - response = requests.post(url, headers=headers, data=data, proxies={"http": proxy_str, "https": proxy_str}, - verify=False) + response = requests.post(url, headers=headers, data=data, proxies={"http": proxy_str, "https": proxy_str}) token = response.json()['access_token'] copy_headers = copy.deepcopy(headers1) copy_headers['authorization'] = "Bearer " + token