GameSentenceMiner 2.14.17__py3-none-any.whl → 2.14.18__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
GameSentenceMiner/gsm.py CHANGED
@@ -617,29 +617,34 @@ def initialize_async():
617
617
 
618
618
 
619
619
  def handle_websocket_message(message: Message):
620
- match FunctionName(message.function):
621
- case FunctionName.QUIT:
622
- cleanup()
623
- sys.exit(0)
624
- case FunctionName.QUIT_OBS:
625
- close_obs()
626
- case FunctionName.START_OBS:
627
- obs.start_obs()
628
- case FunctionName.OPEN_SETTINGS:
629
- open_settings()
630
- case FunctionName.OPEN_TEXTHOOKER:
631
- texthooking_page.open_texthooker()
632
- case FunctionName.OPEN_LOG:
633
- open_log()
634
- case FunctionName.TOGGLE_REPLAY_BUFFER:
635
- play_pause(None, None)
636
- case FunctionName.RESTART_OBS:
637
- restart_obs()
638
- case FunctionName.EXIT:
639
- exit_program(None, None)
640
- case _:
641
- logger.debug(
642
- f"unknown message from electron websocket: {message.to_json()}")
620
+ try:
621
+ match FunctionName(message.function):
622
+ case FunctionName.QUIT:
623
+ cleanup()
624
+ sys.exit(0)
625
+ case FunctionName.QUIT_OBS:
626
+ close_obs()
627
+ case FunctionName.START_OBS:
628
+ obs.start_obs()
629
+ case FunctionName.OPEN_SETTINGS:
630
+ open_settings()
631
+ case FunctionName.OPEN_TEXTHOOKER:
632
+ texthooking_page.open_texthooker()
633
+ case FunctionName.OPEN_LOG:
634
+ open_log()
635
+ case FunctionName.TOGGLE_REPLAY_BUFFER:
636
+ play_pause(None, None)
637
+ case FunctionName.RESTART_OBS:
638
+ restart_obs()
639
+ case FunctionName.EXIT:
640
+ exit_program(None, None)
641
+ case FunctionName.CONNECT:
642
+ logger.debug("Electron WSS connected")
643
+ case _:
644
+ logger.debug(
645
+ f"unknown message from electron websocket: {message.to_json()}")
646
+ except Exception as e:
647
+ logger.debug(f"Error handling websocket message: {e}")
643
648
 
644
649
 
645
650
  def initialize_text_monitor():
@@ -28,6 +28,7 @@ class FunctionName(Enum):
28
28
  RESTART_OBS = "restart_obs"
29
29
  EXIT = "exit"
30
30
  GET_STATUS = "get_status"
31
+ CONNECT = "on_connect"
31
32
 
32
33
 
33
34
  async def do_websocket_connection(port):
@@ -1201,5 +1201,3 @@ is_beangate = os.path.exists("C:/Users/Beangate")
1201
1201
 
1202
1202
  logger.debug(f"Running in development mode: {is_dev}")
1203
1203
  logger.debug(f"Running on Beangate's PC: {is_beangate}")
1204
-
1205
- logger.info("THE UPDATE WORKED?")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: GameSentenceMiner
3
- Version: 2.14.17
3
+ Version: 2.14.18
4
4
  Summary: A tool for mining sentences from games. Update: Overlay?
5
5
  Author-email: Beangate <bpwhelan95@gmail.com>
6
6
  License: MIT License
@@ -2,7 +2,7 @@ GameSentenceMiner/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU
2
2
  GameSentenceMiner/anki.py,sha256=4Tq6OGjfN-5tYorYRWiih7FZjSKMG6amrLv6DFKkFQc,25344
3
3
  GameSentenceMiner/config_gui.py,sha256=SDZ4TEkdhvXxOM_pEG1LABt12M1QkKjMHcQX7bG0OAs,139519
4
4
  GameSentenceMiner/gametext.py,sha256=fgBgLchezpauWELE9Y5G3kVCLfAneD0X4lJFoI3FYbs,10351
5
- GameSentenceMiner/gsm.py,sha256=o8tuJmZqUoJmWAYSypnzNb8NZRKFpuigWwTZiA74-Y0,30990
5
+ GameSentenceMiner/gsm.py,sha256=0ycEa5PaDo7bU9xsiGt-XyYaERSYiiYJgGpVRLeFZis,31275
6
6
  GameSentenceMiner/obs.py,sha256=7A84DnzO14s98JZ7DIlENuLNGzvf7t7VEKggIrqbeW8,23519
7
7
  GameSentenceMiner/vad.py,sha256=zFReBMvNEEaQ_YEozCTCaMdV-o40FwtlxYRb17cYZio,19125
8
8
  GameSentenceMiner/ai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -36,7 +36,7 @@ GameSentenceMiner/tools/audio_offset_selector.py,sha256=8Stk3BP-XVIuzRv9nl9Eqd2D
36
36
  GameSentenceMiner/tools/ss_selector.py,sha256=cbjMxiKOCuOfbRvLR_PCRlykBrGtm1LXd6u5czPqkmc,4793
37
37
  GameSentenceMiner/tools/window_transparency.py,sha256=GtbxbmZg0-UYPXhfHff-7IKZyY2DKe4B9GdyovfmpeM,8166
38
38
  GameSentenceMiner/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
39
- GameSentenceMiner/util/configuration.py,sha256=EQZWIPtu3nPKHsXLf51zX_ENBXPntRS0uZbyCDCyhLs,40236
39
+ GameSentenceMiner/util/configuration.py,sha256=JVwaqvfrUrOUiA0kZcznDsCo9hJkJqBpVztyI6JA-YU,40201
40
40
  GameSentenceMiner/util/db.py,sha256=2bO0rD4i8A1hhsRBER-wgZy9IK17ibRbI8DHxdKvYsI,16598
41
41
  GameSentenceMiner/util/electron_config.py,sha256=KfeJToeFFVw0IR5MKa-gBzpzaGrU-lyJbR9z-sDEHYU,8767
42
42
  GameSentenceMiner/util/ffmpeg.py,sha256=jA-cFtCmdCWrUSPpdtFSLr-GSoqs4qNUzW20v4HPHf0,28715
@@ -47,7 +47,7 @@ GameSentenceMiner/util/notification.py,sha256=YBhf_mSo_i3cjBz-pmeTPx3wchKiG9BK2V
47
47
  GameSentenceMiner/util/text_log.py,sha256=zB9--7J_Wwck74IOEI4aWhmCYouqjSE6Sm0sCznF63Q,6731
48
48
  GameSentenceMiner/util/communication/__init__.py,sha256=xh__yn2MhzXi9eLi89PeZWlJPn-cbBSjskhi1BRraXg,643
49
49
  GameSentenceMiner/util/communication/send.py,sha256=Wki9qIY2CgYnuHbmnyKVIYkcKAN_oYS4up93XMikBaI,222
50
- GameSentenceMiner/util/communication/websocket.py,sha256=TbphRGmxVrgEupS7tNdifsmQfWDfIp0Hio2cSiUKgsk,3317
50
+ GameSentenceMiner/util/communication/websocket.py,sha256=Zpnqsy8RUeYxMFNGVUaPrWrlbAHjuNxCsn908iWL_kU,3344
51
51
  GameSentenceMiner/util/downloader/Untitled_json.py,sha256=RUUl2bbbCpUDUUS0fP0tdvf5FngZ7ILdA_J5TFYAXUQ,15272
52
52
  GameSentenceMiner/util/downloader/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
53
53
  GameSentenceMiner/util/downloader/download_tools.py,sha256=zR-aEHiFVkyo-9oPoSx6nQ2K-_J8WBHLZyLoOhypsW4,8458
@@ -71,9 +71,9 @@ GameSentenceMiner/web/templates/index.html,sha256=LqXZx7-NE42pXSpHNZ3To680rD-vt9
71
71
  GameSentenceMiner/web/templates/text_replacements.html,sha256=tV5c8mCaWSt_vKuUpbdbLAzXZ3ATZeDvQ9PnnAfqY0M,8598
72
72
  GameSentenceMiner/web/templates/utility.html,sha256=3flZinKNqUJ7pvrZk6xu__v67z44rXnaK7UTZ303R-8,16946
73
73
  GameSentenceMiner/wip/__init___.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
74
- gamesentenceminer-2.14.17.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
75
- gamesentenceminer-2.14.17.dist-info/METADATA,sha256=VHilonvUbNczkSOgCGg1vqn800GQ4mKpTEU1KLKjyJs,7303
76
- gamesentenceminer-2.14.17.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
77
- gamesentenceminer-2.14.17.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
78
- gamesentenceminer-2.14.17.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
79
- gamesentenceminer-2.14.17.dist-info/RECORD,,
74
+ gamesentenceminer-2.14.18.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
75
+ gamesentenceminer-2.14.18.dist-info/METADATA,sha256=O46SIBqs6hMZGHMHZU4T-jqvxXG8f9xNnXBRO9rR7rw,7303
76
+ gamesentenceminer-2.14.18.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
77
+ gamesentenceminer-2.14.18.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
78
+ gamesentenceminer-2.14.18.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
79
+ gamesentenceminer-2.14.18.dist-info/RECORD,,