GameSentenceMiner 2.8.0__py3-none-any.whl → 2.8.1__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/util.py +10 -2
- {gamesentenceminer-2.8.0.dist-info → gamesentenceminer-2.8.1.dist-info}/METADATA +1 -1
- {gamesentenceminer-2.8.0.dist-info → gamesentenceminer-2.8.1.dist-info}/RECORD +8 -8
- /GameSentenceMiner/{ocr → downloader}/oneocr_dl.py +0 -0
- {gamesentenceminer-2.8.0.dist-info → gamesentenceminer-2.8.1.dist-info}/WHEEL +0 -0
- {gamesentenceminer-2.8.0.dist-info → gamesentenceminer-2.8.1.dist-info}/entry_points.txt +0 -0
- {gamesentenceminer-2.8.0.dist-info → gamesentenceminer-2.8.1.dist-info}/licenses/LICENSE +0 -0
- {gamesentenceminer-2.8.0.dist-info → gamesentenceminer-2.8.1.dist-info}/top_level.txt +0 -0
GameSentenceMiner/util.py
CHANGED
@@ -253,6 +253,14 @@ TEXT_REPLACEMENTS_FILE = os.path.join(os.getenv('APPDATA'), 'GameSentenceMiner',
|
|
253
253
|
OCR_REPLACEMENTS_FILE = os.path.join(os.getenv('APPDATA'), 'GameSentenceMiner', 'config', 'ocr_replacements.json')
|
254
254
|
os.makedirs(os.path.dirname(TEXT_REPLACEMENTS_FILE), exist_ok=True)
|
255
255
|
|
256
|
+
import urllib.request
|
257
|
+
|
256
258
|
if not os.path.exists(TEXT_REPLACEMENTS_FILE):
|
257
|
-
|
258
|
-
|
259
|
+
url = "https://raw.githubusercontent.com/bpwhelan/GameSentenceMiner/refs/heads/main/electron-src/assets/ocr_replacements.json"
|
260
|
+
try:
|
261
|
+
with urllib.request.urlopen(url) as response:
|
262
|
+
data = response.read().decode('utf-8')
|
263
|
+
with open(TEXT_REPLACEMENTS_FILE, 'w', encoding='utf-8') as f:
|
264
|
+
f.write(data)
|
265
|
+
except Exception as e:
|
266
|
+
logger.error(f"Failed to fetch JSON from {url}: {e}")
|
@@ -11,7 +11,7 @@ GameSentenceMiner/notification.py,sha256=FY39ChSRK0Y8TQ6lBGsLnpZUFPtFpSy2tweeXVo
|
|
11
11
|
GameSentenceMiner/obs.py,sha256=DLTcK48Dqcg-5BYC2Fp-tPCO4dVI9FuVYbwIawECkwQ,8977
|
12
12
|
GameSentenceMiner/package.py,sha256=YlS6QRMuVlm6mdXx0rlXv9_3erTGS21jaP3PNNWfAH0,1250
|
13
13
|
GameSentenceMiner/text_log.py,sha256=tBuZ8ElUgPtiQV8U6U90kmRxposwIkL3fjOYejdzikc,5153
|
14
|
-
GameSentenceMiner/util.py,sha256=
|
14
|
+
GameSentenceMiner/util.py,sha256=kmlbwV1QtvxMnH3YKZIormvzDC59NaEy33CNpQ84Qfo,8912
|
15
15
|
GameSentenceMiner/ai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
16
16
|
GameSentenceMiner/ai/gemini.py,sha256=6kTQPuRH16D-1srhrWa5uPGIy-jBqNm9eRdKBSbpiXA,5423
|
17
17
|
GameSentenceMiner/communication/__init__.py,sha256=_jGn9PJxtOAOPtJ2rI-Qu9hEHVZVpIvWlxKvqk91_zI,638
|
@@ -20,10 +20,10 @@ GameSentenceMiner/communication/websocket.py,sha256=pTcUe_ZZRp9REdSU4qalhPmbT_1D
|
|
20
20
|
GameSentenceMiner/downloader/Untitled_json.py,sha256=RUUl2bbbCpUDUUS0fP0tdvf5FngZ7ILdA_J5TFYAXUQ,15272
|
21
21
|
GameSentenceMiner/downloader/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
22
22
|
GameSentenceMiner/downloader/download_tools.py,sha256=mI1u_FGBmBqDIpCH3jOv8DOoZ3obgP5pIf9o9SVfX2Q,8131
|
23
|
+
GameSentenceMiner/downloader/oneocr_dl.py,sha256=o3ANp5IodEQoQ8GPcJdg9Y8JzA_lictwnebFPwwUZVk,10144
|
23
24
|
GameSentenceMiner/ocr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
24
25
|
GameSentenceMiner/ocr/gsm_ocr_config.py,sha256=zagsB4UD9mmZX_r6dFBCXZqdDa0XGk-RvIqbKoPB9lQ,1932
|
25
26
|
GameSentenceMiner/ocr/ocrconfig.py,sha256=_tY8mjnzHMJrLS8E5pHqYXZjMuLoGKYgJwdhYgN-ny4,6466
|
26
|
-
GameSentenceMiner/ocr/oneocr_dl.py,sha256=o3ANp5IodEQoQ8GPcJdg9Y8JzA_lictwnebFPwwUZVk,10144
|
27
27
|
GameSentenceMiner/ocr/owocr_area_selector.py,sha256=a2i4kW9g9_DJKt6OJ5dlSiqJGiXkKyqAQaAiXBdrq8U,46680
|
28
28
|
GameSentenceMiner/ocr/owocr_helper.py,sha256=wZsWV0e8OfI752lezrJccci05MmXkxMN10QYLMY34uk,16010
|
29
29
|
GameSentenceMiner/owocr/owocr/__init__.py,sha256=opjBOyGGyEqZCE6YdZPnyt7nVfiwyELHsXA0jAsjm14,25
|
@@ -50,9 +50,9 @@ GameSentenceMiner/web/static/text_replacements.html,sha256=LJ2qBEZvyMaBJLLJzDIw0
|
|
50
50
|
GameSentenceMiner/web/static/utility.html,sha256=DlXaglC2ZkBfEKK1sxuS8Dc5Xj09Yqi27qQuEF0c59w,9812
|
51
51
|
GameSentenceMiner/web/static/web-app-manifest-192x192.png,sha256=EfSNnBmsSaLfESbkGfYwbKzcjKOdzuWo18ABADfN974,51117
|
52
52
|
GameSentenceMiner/web/static/web-app-manifest-512x512.png,sha256=wyqgCWCrLEUxSRXmaA3iJEESd-vM-ZmlTtZFBY4V8Pk,230819
|
53
|
-
gamesentenceminer-2.8.
|
54
|
-
gamesentenceminer-2.8.
|
55
|
-
gamesentenceminer-2.8.
|
56
|
-
gamesentenceminer-2.8.
|
57
|
-
gamesentenceminer-2.8.
|
58
|
-
gamesentenceminer-2.8.
|
53
|
+
gamesentenceminer-2.8.1.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
54
|
+
gamesentenceminer-2.8.1.dist-info/METADATA,sha256=dRKPQCkGakJ0uSgk6L3QHb-0E2vRHyGLn6L6c4uABV4,5912
|
55
|
+
gamesentenceminer-2.8.1.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
|
56
|
+
gamesentenceminer-2.8.1.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
|
57
|
+
gamesentenceminer-2.8.1.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
|
58
|
+
gamesentenceminer-2.8.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|