GameSentenceMiner 2.4.1__tar.gz → 2.4.2__tar.gz

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.
Files changed (31) hide show
  1. {gamesentenceminer-2.4.1 → gamesentenceminer-2.4.2}/GameSentenceMiner/downloader/download_tools.py +31 -31
  2. {gamesentenceminer-2.4.1 → gamesentenceminer-2.4.2}/GameSentenceMiner.egg-info/PKG-INFO +1 -1
  3. {gamesentenceminer-2.4.1 → gamesentenceminer-2.4.2}/PKG-INFO +1 -1
  4. {gamesentenceminer-2.4.1 → gamesentenceminer-2.4.2}/pyproject.toml +1 -1
  5. {gamesentenceminer-2.4.1 → gamesentenceminer-2.4.2}/GameSentenceMiner/__init__.py +0 -0
  6. {gamesentenceminer-2.4.1 → gamesentenceminer-2.4.2}/GameSentenceMiner/anki.py +0 -0
  7. {gamesentenceminer-2.4.1 → gamesentenceminer-2.4.2}/GameSentenceMiner/config_gui.py +0 -0
  8. {gamesentenceminer-2.4.1 → gamesentenceminer-2.4.2}/GameSentenceMiner/configuration.py +0 -0
  9. {gamesentenceminer-2.4.1 → gamesentenceminer-2.4.2}/GameSentenceMiner/downloader/Untitled_json.py +0 -0
  10. {gamesentenceminer-2.4.1 → gamesentenceminer-2.4.2}/GameSentenceMiner/downloader/__init__.py +0 -0
  11. {gamesentenceminer-2.4.1 → gamesentenceminer-2.4.2}/GameSentenceMiner/ffmpeg.py +0 -0
  12. {gamesentenceminer-2.4.1 → gamesentenceminer-2.4.2}/GameSentenceMiner/gametext.py +0 -0
  13. {gamesentenceminer-2.4.1 → gamesentenceminer-2.4.2}/GameSentenceMiner/gsm.py +0 -0
  14. {gamesentenceminer-2.4.1 → gamesentenceminer-2.4.2}/GameSentenceMiner/model.py +0 -0
  15. {gamesentenceminer-2.4.1 → gamesentenceminer-2.4.2}/GameSentenceMiner/notification.py +0 -0
  16. {gamesentenceminer-2.4.1 → gamesentenceminer-2.4.2}/GameSentenceMiner/obs.py +0 -0
  17. {gamesentenceminer-2.4.1 → gamesentenceminer-2.4.2}/GameSentenceMiner/package_updater.py +0 -0
  18. {gamesentenceminer-2.4.1 → gamesentenceminer-2.4.2}/GameSentenceMiner/util.py +0 -0
  19. {gamesentenceminer-2.4.1 → gamesentenceminer-2.4.2}/GameSentenceMiner/utility_gui.py +0 -0
  20. {gamesentenceminer-2.4.1 → gamesentenceminer-2.4.2}/GameSentenceMiner/vad/__init__.py +0 -0
  21. {gamesentenceminer-2.4.1 → gamesentenceminer-2.4.2}/GameSentenceMiner/vad/silero_trim.py +0 -0
  22. {gamesentenceminer-2.4.1 → gamesentenceminer-2.4.2}/GameSentenceMiner/vad/vosk_helper.py +0 -0
  23. {gamesentenceminer-2.4.1 → gamesentenceminer-2.4.2}/GameSentenceMiner/vad/whisper_helper.py +0 -0
  24. {gamesentenceminer-2.4.1 → gamesentenceminer-2.4.2}/GameSentenceMiner.egg-info/SOURCES.txt +0 -0
  25. {gamesentenceminer-2.4.1 → gamesentenceminer-2.4.2}/GameSentenceMiner.egg-info/dependency_links.txt +0 -0
  26. {gamesentenceminer-2.4.1 → gamesentenceminer-2.4.2}/GameSentenceMiner.egg-info/entry_points.txt +0 -0
  27. {gamesentenceminer-2.4.1 → gamesentenceminer-2.4.2}/GameSentenceMiner.egg-info/requires.txt +0 -0
  28. {gamesentenceminer-2.4.1 → gamesentenceminer-2.4.2}/GameSentenceMiner.egg-info/top_level.txt +0 -0
  29. {gamesentenceminer-2.4.1 → gamesentenceminer-2.4.2}/LICENSE +0 -0
  30. {gamesentenceminer-2.4.1 → gamesentenceminer-2.4.2}/README.md +0 -0
  31. {gamesentenceminer-2.4.1 → gamesentenceminer-2.4.2}/setup.cfg +0 -0
@@ -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
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: GameSentenceMiner
3
- Version: 2.4.1
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
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
7
7
 
8
8
  [project]
9
9
  name = "GameSentenceMiner"
10
- version = "2.4.1"
10
+ version = "2.4.2"
11
11
  description = "A tool for mining sentences from games. Update: Multi-Line Mining! Fixed!"
12
12
  readme = "README.md"
13
13
  requires-python = ">=3.10"