bugx fix for tixcraft

master
CHUN YU YAO 2023-03-08 08:14:54 +08:00
parent 7abe47b0c4
commit 318304cca1
3 changed files with 12 additions and 5 deletions

View File

@ -53,7 +53,7 @@ import argparse
import ssl import ssl
ssl._create_default_https_context = ssl._create_unverified_context ssl._create_default_https_context = ssl._create_unverified_context
CONST_APP_VERSION = u"MaxBot (2023.03.07)" CONST_APP_VERSION = u"MaxBot (2023.03.07).02"
CONST_HOMEPAGE_DEFAULT = "https://tixcraft.com" CONST_HOMEPAGE_DEFAULT = "https://tixcraft.com"
URL_GOOGLE_OAUTH = 'https://accounts.google.com/o/oauth2/v2/auth/oauthchooseaccount?redirect_uri=https%3A%2F%2Fdevelopers.google.com%2Foauthplayground&prompt=consent&response_type=code&client_id=407408718192.apps.googleusercontent.com&scope=email&access_type=offline&flowName=GeneralOAuthFlow' URL_GOOGLE_OAUTH = 'https://accounts.google.com/o/oauth2/v2/auth/oauthchooseaccount?redirect_uri=https%3A%2F%2Fdevelopers.google.com%2Foauthplayground&prompt=consent&response_type=code&client_id=407408718192.apps.googleusercontent.com&scope=email&access_type=offline&flowName=GeneralOAuthFlow'
@ -1305,6 +1305,8 @@ def tixcraft_date_auto_select(driver, url, config_dict, domain_name):
# read config. # read config.
auto_select_mode = config_dict["tixcraft"]["date_auto_select"]["mode"] auto_select_mode = config_dict["tixcraft"]["date_auto_select"]["mode"]
date_keyword = config_dict["tixcraft"]["date_auto_select"]["date_keyword"].strip() date_keyword = config_dict["tixcraft"]["date_auto_select"]["date_keyword"].strip()
# TODO: implement this feature.
date_keyword_and = ""
pass_date_is_sold_out_enable = config_dict["tixcraft"]["pass_date_is_sold_out"] pass_date_is_sold_out_enable = config_dict["tixcraft"]["pass_date_is_sold_out"]
auto_reload_coming_soon_page_enable = config_dict["tixcraft"]["auto_reload_coming_soon_page"] auto_reload_coming_soon_page_enable = config_dict["tixcraft"]["auto_reload_coming_soon_page"]
@ -8143,7 +8145,12 @@ def main(args):
driver = None driver = None
if not config_dict is None: if not config_dict is None:
for i in range(50):
driver = get_driver_by_config(config_dict) driver = get_driver_by_config(config_dict)
if not driver is None:
break
else:
time.sleep(0.05)
else: else:
print("Load config error!") print("Load config error!")
@ -8184,7 +8191,7 @@ def main(args):
DISCONNECTED_MSG = ': target window already closed' DISCONNECTED_MSG = ': target window already closed'
while True: while True:
time.sleep(0.1) time.sleep(0.05)
is_alert_popup = False is_alert_popup = False

View File

@ -20,7 +20,7 @@ import json
import webbrowser import webbrowser
import base64 import base64
CONST_APP_VERSION = u"MaxBot (2023.03.07)" CONST_APP_VERSION = u"MaxBot (2023.03.07).02"
CONST_LAUNCHER_CONFIG_FILENAME = "config_launcher.json" CONST_LAUNCHER_CONFIG_FILENAME = "config_launcher.json"

View File

@ -21,7 +21,7 @@ import webbrowser
import pyperclip import pyperclip
import base64 import base64
CONST_APP_VERSION = u"MaxBot (2023.03.07)" CONST_APP_VERSION = u"MaxBot (2023.03.07).02"
CONST_SETTINGS_CONFIG_FILENAME = "settings.json" CONST_SETTINGS_CONFIG_FILENAME = "settings.json"