GameSentenceMiner 2.4.9__py3-none-any.whl → 2.4.10__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.
@@ -888,6 +888,7 @@ class ConfigApp:
888
888
 
889
889
 
890
890
  if __name__ == '__main__':
891
- window = ConfigApp()
891
+ root = ttk.Window(themename='darkly')
892
+ window = ConfigApp(root)
892
893
  window.show()
893
894
  window.window.mainloop()
@@ -123,7 +123,7 @@ class Audio:
123
123
  class OBS:
124
124
  enabled: bool = True
125
125
  open_obs: bool = True
126
- close_obs: bool = False
126
+ close_obs: bool = True
127
127
  host: str = "localhost"
128
128
  port: int = 4455
129
129
  password: str = "your_password"
@@ -49,7 +49,7 @@ def get_screenshot(video_file, time_from_end):
49
49
  return output_image
50
50
 
51
51
 
52
- def get_screenshot_time(video_path, game_line):
52
+ def get_screenshot_time(video_path, game_line, default_beginning=False):
53
53
  if game_line:
54
54
  line_time = game_line.time
55
55
  else:
@@ -64,7 +64,13 @@ def get_screenshot_time(video_path, game_line):
64
64
  time_from_end = file_length - total_seconds - get_config().screenshot.seconds_after_line
65
65
 
66
66
  if time_from_end < 0 or time_from_end > file_length:
67
- raise ValueError("Calculated screenshot time is out of bounds for trimmed video.")
67
+ logger.error(
68
+ "Calculated screenshot time is out of bounds for trimmed video")
69
+ if default_beginning:
70
+ logger.info("Defaulting to using the beginning of the Replay Buffer")
71
+ return file_length - 1.0
72
+ logger.info("Defaulting to using the end of the Replay Buffer")
73
+ return 0
68
74
 
69
75
  return time_from_end
70
76
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: GameSentenceMiner
3
- Version: 2.4.9
3
+ Version: 2.4.10
4
4
  Summary: A tool for mining sentences from games. Update: Multi-Line Mining! Fixed!
5
5
  Author-email: Beangate <bpwhelan95@gmail.com>
6
6
  License: MIT License
@@ -1,9 +1,9 @@
1
1
  GameSentenceMiner/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  GameSentenceMiner/anki.py,sha256=YSz5gUTsKOdbogwHKtgFM7v7pREjdAwl7A0Wa_CXnKg,10918
3
- GameSentenceMiner/config_gui.py,sha256=6DPJjzP-cHVU9q4j9UP1uF1z0o0z-mq0cuNqjZSIHdo,52566
4
- GameSentenceMiner/configuration.py,sha256=bvU2XCOjCtHiTtCI1t5r986QznEKfTmH--i3YPE1Q-Y,15072
3
+ GameSentenceMiner/config_gui.py,sha256=5qsYlPHxDABbBRHJjIWMRsiDPLFTmKNMVUnxQO9YLYc,52612
4
+ GameSentenceMiner/configuration.py,sha256=qTXZnk0TMPKnSPSkRg4HpDXYFCXBkD43to31Uaf1NZs,15071
5
5
  GameSentenceMiner/electron_messaging.py,sha256=fBk9Ipo0jg2OZwYaKe1Qsm05P2ftrdTRGgFYob7ZA-k,139
6
- GameSentenceMiner/ffmpeg.py,sha256=vLBmQgkh23BS2vE5u7bli_1_3wFN5cB3VCgrAZ1VAL8,11197
6
+ GameSentenceMiner/ffmpeg.py,sha256=vkRvhsuXCL8-tGynobdLBnw4qNHUhTC33ITCCnjfZLM,11468
7
7
  GameSentenceMiner/gametext.py,sha256=VjWNdjHwWXWIwNOfYxud7EwIyg7t6zZ3IkmMhh8Vc0c,6819
8
8
  GameSentenceMiner/gsm.py,sha256=E9Hpbyzrv8FEFGBs-4Hf60m3sk0ps3OQdvB1n42AhRU,20164
9
9
  GameSentenceMiner/model.py,sha256=oh8VVT8T1UKekbmP6MGNgQ8jIuQ_7Rg4GPzDCn2kJo8,1999
@@ -19,9 +19,9 @@ GameSentenceMiner/vad/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
19
19
  GameSentenceMiner/vad/silero_trim.py,sha256=syDJX_KbFmdyFFtnQqYTD0tICsUCJizYhs-atPgXtxA,1549
20
20
  GameSentenceMiner/vad/vosk_helper.py,sha256=HifeXKbEMrs81ZuuGxS67yAghu8TMXUP6Oan9i9dTxw,5938
21
21
  GameSentenceMiner/vad/whisper_helper.py,sha256=bpR1HVnJRn9H5u8XaHBqBJ6JwIjzqn-Fajps8QmQ4zc,3411
22
- gamesentenceminer-2.4.9.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
23
- gamesentenceminer-2.4.9.dist-info/METADATA,sha256=S1bYWp1jUPpluIsgLldFPvvQydDmOH2Ue6aMqZ2Ca9M,5387
24
- gamesentenceminer-2.4.9.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
25
- gamesentenceminer-2.4.9.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
26
- gamesentenceminer-2.4.9.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
27
- gamesentenceminer-2.4.9.dist-info/RECORD,,
22
+ gamesentenceminer-2.4.10.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
23
+ gamesentenceminer-2.4.10.dist-info/METADATA,sha256=b2hnaSPPzfNT_WmHqWZouxpa0rHuqpB3h-D0eMcAMmc,5388
24
+ gamesentenceminer-2.4.10.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
25
+ gamesentenceminer-2.4.10.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
26
+ gamesentenceminer-2.4.10.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
27
+ gamesentenceminer-2.4.10.dist-info/RECORD,,