2023-12-02, fix for ticketplus

master
CHUN YU YAO 2023-12-09 15:10:23 +08:00
parent 7b5c3f3057
commit a64fd1baeb
5 changed files with 11 additions and 8 deletions

View File

@ -55,7 +55,7 @@ import webbrowser
import chromedriver_autoinstaller import chromedriver_autoinstaller
CONST_APP_VERSION = "MaxBot (2023.12.01)" CONST_APP_VERSION = "MaxBot (2023.12.02)"
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"
@ -836,6 +836,7 @@ def get_driver_by_config(config_dict):
,'*syndication.twitter.com/*' ,'*syndication.twitter.com/*'
,'*youtube.com/*' ,'*youtube.com/*'
,'*player.youku.*' ,'*player.youku.*'
,'*h.clarity.ms/*'
,'*e2elog.fetnet.net*'] ,'*e2elog.fetnet.net*']
if config_dict["advanced"]["hide_some_image"]: if config_dict["advanced"]["hide_some_image"]:
@ -10850,9 +10851,10 @@ def ticketplus_date_auto_select(driver, config_dict):
print("find or press button fail:", exc) print("find or press button fail:", exc)
if not target_button is None: if not target_button is None:
print("try to click button fail, force click by js.") #print("try to click button fail, force click by js.")
try: try:
driver.execute_script("arguments[0].click();", target_button) #driver.execute_script("arguments[0].click();", target_button)
pass
except Exception as exc: except Exception as exc:
pass pass
@ -11759,8 +11761,9 @@ def ticketplus_main(driver, url, config_dict, ocr, Captcha_Browser, ticketplus_d
if is_event_page: if is_event_page:
is_button_pressed = ticketplus_accept_realname_card(driver) is_button_pressed = ticketplus_accept_realname_card(driver)
#print("is accept button pressed:", is_button_pressed)
is_button_pressed = ticketplus_accept_other_activity(driver) is_button_pressed = ticketplus_accept_other_activity(driver)
#print("realname is_button_pressed:", is_button_pressed) #print("is accept button pressed:", is_button_pressed)
if config_dict["tixcraft"]["date_auto_select"]["enable"]: if config_dict["tixcraft"]["date_auto_select"]["enable"]:
ticketplus_date_auto_select(driver, config_dict) ticketplus_date_auto_select(driver, config_dict)

View File

@ -22,7 +22,7 @@ import sys
import threading import threading
import webbrowser import webbrowser
CONST_APP_VERSION = "MaxBot (2023.12.01)" CONST_APP_VERSION = "MaxBot (2023.12.02)"
CONST_MAXBOT_LAUNCHER_FILE = "config_launcher.json" CONST_MAXBOT_LAUNCHER_FILE = "config_launcher.json"
CONST_MAXBOT_CONFIG_FILE = "settings.json" CONST_MAXBOT_CONFIG_FILE = "settings.json"

View File

@ -2,7 +2,7 @@ certifi
chardet chardet
cryptography cryptography
idna idna
Pillow==9.5.0 Pillow
selenium>=4.0.0 selenium>=4.0.0
undetected-chromedriver undetected-chromedriver
playsound==1.2.2 playsound==1.2.2

View File

@ -34,7 +34,7 @@ import ssl
ssl._create_default_https_context = ssl._create_unverified_context ssl._create_default_https_context = ssl._create_unverified_context
CONST_APP_VERSION = "MaxBot (2023.12.01)" CONST_APP_VERSION = "MaxBot (2023.12.02)"
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"

View File

@ -27,7 +27,7 @@ import pyperclip
import tornado import tornado
from tornado.web import Application from tornado.web import Application
CONST_APP_VERSION = "MaxBot (2023.12.01)" CONST_APP_VERSION = "MaxBot (2023.12.02)"
CONST_MAXBOT_QUESTION_FILE = "MAXBOT_QUESTION.txt" CONST_MAXBOT_QUESTION_FILE = "MAXBOT_QUESTION.txt"