update for cityline.

master
Max 2023-08-14 11:18:57 +08:00 committed by GitHub
parent e495c629c2
commit 5ab9f13ea8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 2 deletions

View File

@ -54,7 +54,7 @@ import webbrowser
import argparse import argparse
import chromedriver_autoinstaller 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_CONFIG_FILE = "settings.json"
CONST_MAXBOT_LAST_URL_FILE = "MAXBOT_LAST_URL.txt" 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/ # https://msg.cityline.com/ https://event.cityline.com/
if 'msg.cityline.com' in url or 'event.cityline.com' in url: if 'msg.cityline.com' in url or 'event.cityline.com' in url:
try: try:
driver.execute_script("goEvent();") driver.set_script_timeout(1)
driver.execute_script("retry();")
except Exception as exec1: except Exception as exec1:
pass pass
pass pass
@ -7604,6 +7605,17 @@ def cityline_main(driver, url, config_dict):
except Exception as excSwithFail: except Exception as excSwithFail:
pass 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 is_ready_to_buy_from_queue = False
# Q: How to know ready to buy ticket from queue? # Q: How to know ready to buy ticket from queue?
if is_ready_to_buy_from_queue: if is_ready_to_buy_from_queue: