From 5ab9f13ea841cb32b37147ae6379874f53af76fc Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 14 Aug 2023 11:18:57 +0800 Subject: [PATCH] update for cityline. --- chrome_tixcraft.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/chrome_tixcraft.py b/chrome_tixcraft.py index f7e4502..88711b1 100644 --- a/chrome_tixcraft.py +++ b/chrome_tixcraft.py @@ -54,7 +54,7 @@ import webbrowser import argparse import chromedriver_autoinstaller -CONST_APP_VERSION = "MaxBot (2023.08.07)" +CONST_APP_VERSION = "MaxBot (2023.08.10)" CONST_MAXBOT_CONFIG_FILE = "settings.json" CONST_MAXBOT_LAST_URL_FILE = "MAXBOT_LAST_URL.txt" @@ -7587,7 +7587,8 @@ def cityline_main(driver, url, config_dict): # https://msg.cityline.com/ https://event.cityline.com/ if 'msg.cityline.com' in url or 'event.cityline.com' in url: try: - driver.execute_script("goEvent();") + driver.set_script_timeout(1) + driver.execute_script("retry();") except Exception as exec1: pass pass @@ -7604,6 +7605,17 @@ def cityline_main(driver, url, config_dict): except Exception as excSwithFail: pass + if 'https://shows.cityline.com/' == url: + try: + driver.set_script_timeout(1) + driver.execute_script("go_venue('TW');") + except Exception as exc: + pass + + if 'cityline.com/queue?' in url: + pass + + is_ready_to_buy_from_queue = False # Q: How to know ready to buy ticket from queue? if is_ready_to_buy_from_queue: