GameSentenceMiner 2.9.23__py3-none-any.whl → 2.9.24__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.
@@ -269,7 +269,7 @@ class ScreenSelector:
269
269
  """Saves rectangles to the config file, using percentages if window is targeted."""
270
270
  # Use the window geometry found during __init__ for consistency during save
271
271
  window_geom_to_save = self.target_window_geometry
272
- save_coord_system = COORD_SYSTEM_ABSOLUTE # Default if no window
272
+ save_coord_system = COORD_SYSTEM_PERCENTAGE # Default if no window
273
273
 
274
274
  config_path = self.get_scene_ocr_config()
275
275
  print(f"Saving rectangles to: {config_path}")
@@ -334,7 +334,7 @@ class ScreenSelector:
334
334
  serializable_rects.append(rect_data)
335
335
 
336
336
  # Prepare final data structure for JSON
337
- if len(rectangles) == 0:
337
+ if not self.rectangles or len(self.rectangles) == 0:
338
338
  save_coord_system = COORD_SYSTEM_PERCENTAGE
339
339
  save_data = {
340
340
  "scene": obs.get_current_scene() or "default_scene",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: GameSentenceMiner
3
- Version: 2.9.23
3
+ Version: 2.9.24
4
4
  Summary: A tool for mining sentences from games.
5
5
  Author-email: Beangate <bpwhelan95@gmail.com>
6
6
  License: MIT License
@@ -18,7 +18,7 @@ GameSentenceMiner/assets/pickaxe.png,sha256=VfIGyXyIZdzEnVcc4PmG3wszPMO1W4KCT7Q_
18
18
  GameSentenceMiner/ocr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
19
  GameSentenceMiner/ocr/gsm_ocr_config.py,sha256=fEQ2o2NXksGRHpueO8c4TfAp75GEdAtAr1ngTFOsdpg,2257
20
20
  GameSentenceMiner/ocr/ocrconfig.py,sha256=_tY8mjnzHMJrLS8E5pHqYXZjMuLoGKYgJwdhYgN-ny4,6466
21
- GameSentenceMiner/ocr/owocr_area_selector.py,sha256=HvzGDW5UaJ3AmrKV_IqOfCvZ7D7X6S3th_XnXk_LIU0,47259
21
+ GameSentenceMiner/ocr/owocr_area_selector.py,sha256=BXjHh1-NWwDeQ623MkwdR2hu6HBQAk5stpbiLE2WX_4,47289
22
22
  GameSentenceMiner/ocr/owocr_helper.py,sha256=idjVB8Ln9PwNUFZMOtRkq7wAhbteU7-haRM7Cf_wmY4,20979
23
23
  GameSentenceMiner/ocr/ss_picker.py,sha256=Ck2K9JliXhY_7a7nS0BVsoAmzwPFFtsW_TxHCcfxT00,4274
24
24
  GameSentenceMiner/owocr/owocr/__init__.py,sha256=87hfN5u_PbL_onLfMACbc0F5j4KyIK9lKnRCj6oZgR0,49
@@ -61,9 +61,9 @@ GameSentenceMiner/web/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm
61
61
  GameSentenceMiner/web/templates/index.html,sha256=HZKiIjiGJV8PGQ9T2aLDUNSfJn71qOwbYCjbRuSIjpY,213583
62
62
  GameSentenceMiner/web/templates/text_replacements.html,sha256=tV5c8mCaWSt_vKuUpbdbLAzXZ3ATZeDvQ9PnnAfqY0M,8598
63
63
  GameSentenceMiner/web/templates/utility.html,sha256=3flZinKNqUJ7pvrZk6xu__v67z44rXnaK7UTZ303R-8,16946
64
- gamesentenceminer-2.9.23.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
65
- gamesentenceminer-2.9.23.dist-info/METADATA,sha256=4NIEep_aRefXZXkRen67RttLkQRsm-Zgcb7pi9g801g,7276
66
- gamesentenceminer-2.9.23.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
67
- gamesentenceminer-2.9.23.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
68
- gamesentenceminer-2.9.23.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
69
- gamesentenceminer-2.9.23.dist-info/RECORD,,
64
+ gamesentenceminer-2.9.24.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
65
+ gamesentenceminer-2.9.24.dist-info/METADATA,sha256=mmAUr_sxdKxY2_Vdt83NkFBqB4LfCdqY6m8ze8-vrqQ,7276
66
+ gamesentenceminer-2.9.24.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
67
+ gamesentenceminer-2.9.24.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
68
+ gamesentenceminer-2.9.24.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
69
+ gamesentenceminer-2.9.24.dist-info/RECORD,,