GameSentenceMiner 2.4.1.dev1__py3-none-any.whl → 2.4.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.
@@ -67,37 +67,37 @@ def download_obs_if_needed():
67
67
  with zipfile.ZipFile(obs_installer, 'r') as zip_ref:
68
68
  zip_ref.extractall(obs_path)
69
69
  open(os.path.join(obs_path, "portable_mode"), 'a').close()
70
- websocket_config_path = os.path.join(obs_path, 'config', 'obs-studio')
71
- if not copy_obs_settings(os.path.join(os.getenv('APPDATA'), 'obs-studio'), websocket_config_path):
72
- websocket_config_path = os.path.join(obs_path, 'config', 'obs-studio', 'plugin_config', 'obs-websocket')
73
- os.makedirs(websocket_config_path, exist_ok=True)
74
-
75
- websocket_config = {
76
- "alerts_enabled": False,
77
- "auth_required": False,
78
- "first_load": False,
79
- "server_enabled": True,
80
- "server_password": secrets.token_urlsafe(16),
81
- "server_port": 7274
82
- }
83
- with open(os.path.join(websocket_config_path, 'config.json'), 'w') as config_file:
84
- json.dump(websocket_config, config_file, indent=4)
85
- basic_ini_path = os.path.join(obs_path, 'config', 'obs-studio', 'basic', 'profiles', 'Untitled')
86
- os.makedirs(basic_ini_path, exist_ok=True)
87
- with open(os.path.join(basic_ini_path, 'basic.ini'), 'w') as basic_ini_file:
88
- basic_ini_file.write(
89
- "[SimpleOutput]\n"
90
- f"FilePath={os.path.expanduser('~')}/Videos/GSM\n"
91
- "RecRB=true\n"
92
- "RecRBTime=60\n"
93
- "RecRBSize=512\n"
94
- "RecRBPrefix=GSM\n"
95
- "RecAudioEncoder=opus\n"
96
- )
97
- scene_json_path = os.path.join(obs_path, 'config', 'obs-studio', 'basic', 'scenes')
98
- os.makedirs(scene_json_path, exist_ok=True)
99
- with open(os.path.join(scene_json_path, 'Untitled.json'), 'w') as scene_file:
100
- scene_file.write(scenes)
70
+ # websocket_config_path = os.path.join(obs_path, 'config', 'obs-studio')
71
+ # if not copy_obs_settings(os.path.join(os.getenv('APPDATA'), 'obs-studio'), websocket_config_path):
72
+ websocket_config_path = os.path.join(obs_path, 'config', 'obs-studio', 'plugin_config', 'obs-websocket')
73
+ os.makedirs(websocket_config_path, exist_ok=True)
74
+
75
+ websocket_config = {
76
+ "alerts_enabled": False,
77
+ "auth_required": False,
78
+ "first_load": False,
79
+ "server_enabled": True,
80
+ "server_password": secrets.token_urlsafe(16),
81
+ "server_port": 7274
82
+ }
83
+ with open(os.path.join(websocket_config_path, 'config.json'), 'w') as config_file:
84
+ json.dump(websocket_config, config_file, indent=4)
85
+ basic_ini_path = os.path.join(obs_path, 'config', 'obs-studio', 'basic', 'profiles', 'Untitled')
86
+ os.makedirs(basic_ini_path, exist_ok=True)
87
+ with open(os.path.join(basic_ini_path, 'basic.ini'), 'w') as basic_ini_file:
88
+ basic_ini_file.write(
89
+ "[SimpleOutput]\n"
90
+ f"FilePath={os.path.expanduser('~')}/Videos/GSM\n"
91
+ "RecRB=true\n"
92
+ "RecRBTime=60\n"
93
+ "RecRBSize=512\n"
94
+ "RecRBPrefix=GSM\n"
95
+ "RecAudioEncoder=opus\n"
96
+ )
97
+ scene_json_path = os.path.join(obs_path, 'config', 'obs-studio', 'basic', 'scenes')
98
+ os.makedirs(scene_json_path, exist_ok=True)
99
+ with open(os.path.join(scene_json_path, 'Untitled.json'), 'w') as scene_file:
100
+ scene_file.write(scenes)
101
101
  logger.info(f"OBS extracted to {obs_path}.")
102
102
  else:
103
103
  logger.error(f"Please install OBS manually from {obs_installer}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: GameSentenceMiner
3
- Version: 2.4.1.dev1
3
+ Version: 2.4.2
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
@@ -13,14 +13,14 @@ GameSentenceMiner/util.py,sha256=MITweiFYaefWQF5nR8tZ9yE6vd_b-fLuP0MP1Y1U4K0,472
13
13
  GameSentenceMiner/utility_gui.py,sha256=EtQUnCgTTdzKJE0iCJiHjjc_c6tc7JtI09LRg4_iy8Y,4555
14
14
  GameSentenceMiner/downloader/Untitled_json.py,sha256=RUUl2bbbCpUDUUS0fP0tdvf5FngZ7ILdA_J5TFYAXUQ,15272
15
15
  GameSentenceMiner/downloader/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
- GameSentenceMiner/downloader/download_tools.py,sha256=M7vLo6_0QMuk1Ji4CsZqk1C2g7Bq6PyM29r7XNoP6Rw,6406
16
+ GameSentenceMiner/downloader/download_tools.py,sha256=584QVsv-btpJowMRrqSbWpKDCMhInQM0iGe-Yw0Q2p0,6298
17
17
  GameSentenceMiner/vad/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
18
18
  GameSentenceMiner/vad/silero_trim.py,sha256=syDJX_KbFmdyFFtnQqYTD0tICsUCJizYhs-atPgXtxA,1549
19
19
  GameSentenceMiner/vad/vosk_helper.py,sha256=-AAwK0cgOC5rK3_gL0sQgrPJ75E49g_PxZR4d5ckwc4,5826
20
20
  GameSentenceMiner/vad/whisper_helper.py,sha256=bpR1HVnJRn9H5u8XaHBqBJ6JwIjzqn-Fajps8QmQ4zc,3411
21
- gamesentenceminer-2.4.1.dev1.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
22
- gamesentenceminer-2.4.1.dev1.dist-info/METADATA,sha256=JsOXN8xdga2-9UK5l73MtXnU9-qb8m1HJUE41zrSCwI,10400
23
- gamesentenceminer-2.4.1.dev1.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
24
- gamesentenceminer-2.4.1.dev1.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
25
- gamesentenceminer-2.4.1.dev1.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
26
- gamesentenceminer-2.4.1.dev1.dist-info/RECORD,,
21
+ gamesentenceminer-2.4.2.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
22
+ gamesentenceminer-2.4.2.dist-info/METADATA,sha256=a82JB-lTRQd-1RgBAfITMu9TEQKhIICXqZxzwmTK7Ls,10395
23
+ gamesentenceminer-2.4.2.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
24
+ gamesentenceminer-2.4.2.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
25
+ gamesentenceminer-2.4.2.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
26
+ gamesentenceminer-2.4.2.dist-info/RECORD,,