ohli24 api update 2023.01.15(02.)
This commit is contained in:
@@ -955,11 +955,13 @@ class LogicOhli24(LogicModuleBase):
|
||||
def get_html(
|
||||
url, headers=None, referer=None, stream=False, timeout=5, stealth=False
|
||||
):
|
||||
# global response_data
|
||||
data = ""
|
||||
# response_date = ""
|
||||
try:
|
||||
|
||||
print("cloudflare protection bypass ==================P")
|
||||
|
||||
response_date = ""
|
||||
if headers is not None:
|
||||
LogicOhli24.headers = headers
|
||||
|
||||
@@ -995,7 +997,7 @@ class LogicOhli24(LogicModuleBase):
|
||||
except Exception as e:
|
||||
logger.error("Exception:%s", e)
|
||||
logger.error(traceback.format_exc())
|
||||
return response_data
|
||||
# return response_data
|
||||
|
||||
#########################################################
|
||||
def add(self, episode_info):
|
||||
|
||||
Reference in New Issue
Block a user