GameSentenceMiner 2.18.1__py3-none-any.whl → 2.18.2__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.
@@ -864,10 +864,11 @@ class Config:
864
864
  # Add a way to migrate certain things based on version if needed, also help with better defaults
865
865
  if self.version:
866
866
  if self.version != get_current_version():
867
+ from packaging import version
867
868
  logger.info(f"Config version mismatch detected: {self.version} != {get_current_version()}")
868
869
  # Handle version mismatch
869
870
  changed = False
870
- if self.version < "2.18.0":
871
+ if version.parse(self.version) < version.parse("2.18.0"):
871
872
  changed = True
872
873
  # Example, doesn't need to be done
873
874
  for profile in self.configs.values():
@@ -188,6 +188,7 @@ class OverlayProcessor:
188
188
  For primary monitor, excludes taskbar. For others, returns full monitor area.
189
189
  monitor_index: 0 = primary monitor, 1+ = others (as in mss.monitors).
190
190
  """
191
+ set_dpi_awareness()
191
192
  with mss.mss() as sct:
192
193
  monitors = sct.monitors[1:]
193
194
  return monitors[monitor_index] if 0 <= monitor_index < len(monitors) else monitors[0]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: GameSentenceMiner
3
- Version: 2.18.1
3
+ Version: 2.18.2
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
@@ -40,11 +40,11 @@ GameSentenceMiner/ui/anki_confirmation.py,sha256=m27IcWbUwb6o6Klh3NwXBc2FtMX9Da3
40
40
  GameSentenceMiner/ui/config_gui.py,sha256=Nt6uuJrinOrSpDdrw92zdd1GvyQNjOoGvkZQdGWA9ds,151913
41
41
  GameSentenceMiner/ui/screenshot_selector.py,sha256=AKML87MpgYQeSuj1F10GngpNrn9qp06zLLzNRwrQWM8,8900
42
42
  GameSentenceMiner/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
43
- GameSentenceMiner/util/configuration.py,sha256=K3NIcqwMtAgB_ZytucTgBgDqV1243yrWM5mp5qj2WlE,46577
43
+ GameSentenceMiner/util/configuration.py,sha256=fYlU4Qrr6T-k_G2MY2rgoQ9EV_k7XBfbtsO8q7PKTsU,46653
44
44
  GameSentenceMiner/util/db.py,sha256=3Fs75pGJyf8-3y3k6Zfpgp8z9tYL9-ZvQUk_FgDc9Vw,28664
45
45
  GameSentenceMiner/util/electron_config.py,sha256=KfeJToeFFVw0IR5MKa-gBzpzaGrU-lyJbR9z-sDEHYU,8767
46
46
  GameSentenceMiner/util/ffmpeg.py,sha256=cAzztfY36Xf2WvsJDjavoiMOvA9ac2GVdCrSB4LzHk4,29007
47
- GameSentenceMiner/util/get_overlay_coords.py,sha256=aYmSxJzyCeIRLNEwL2V8GxMVIsj8qvUv4ysE4YxpWNM,22144
47
+ GameSentenceMiner/util/get_overlay_coords.py,sha256=iAA49bF_8jJXNR6bEGEVAuXsUwYMW5tcfnCGiLyAzso,22172
48
48
  GameSentenceMiner/util/gsm_utils.py,sha256=mASECTmN10c2yPL4NEfLg0Y0YWwFso1i6r_hhJPR3MY,10974
49
49
  GameSentenceMiner/util/model.py,sha256=R-_RYTYLSDNgBoVTPuPBcIHeOznIqi_vBzQ7VQ20WYk,6727
50
50
  GameSentenceMiner/util/notification.py,sha256=YBhf_mSo_i3cjBz-pmeTPx3wchKiG9BK2VBdZSa2prQ,4597
@@ -124,9 +124,9 @@ GameSentenceMiner/web/templates/components/kanji_grid/thousand_character_classic
124
124
  GameSentenceMiner/web/templates/components/kanji_grid/wanikani_levels.json,sha256=8wjnnaYQqmho6t5tMxrIAc03512A2tYhQh5dfsQnfAM,11372
125
125
  GameSentenceMiner/web/templates/components/kanji_grid/words_hk_frequency_list.json,sha256=wRkqZNPzz6DT9OTPHpXwfqW96Qb96stCQNNgOL-ZdKk,17535
126
126
  GameSentenceMiner/wip/__init___.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
127
- gamesentenceminer-2.18.1.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
128
- gamesentenceminer-2.18.1.dist-info/METADATA,sha256=2z6qsUbbScQ_odYmkBVXbiihS4fcatapu249dtgK2Cs,7487
129
- gamesentenceminer-2.18.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
130
- gamesentenceminer-2.18.1.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
131
- gamesentenceminer-2.18.1.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
132
- gamesentenceminer-2.18.1.dist-info/RECORD,,
127
+ gamesentenceminer-2.18.2.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
128
+ gamesentenceminer-2.18.2.dist-info/METADATA,sha256=ur53IngoSZHHs1vyMxSPuwZJhbkyBJajZ9exWCn8zQY,7487
129
+ gamesentenceminer-2.18.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
130
+ gamesentenceminer-2.18.2.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
131
+ gamesentenceminer-2.18.2.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
132
+ gamesentenceminer-2.18.2.dist-info/RECORD,,