GameSentenceMiner 2.2.2.post2__py3-none-any.whl → 2.2.3__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/config_gui.py +1 -1
- GameSentenceMiner/configuration.py +3 -0
- GameSentenceMiner/gsm.py +11 -14
- {GameSentenceMiner-2.2.2.post2.dist-info → GameSentenceMiner-2.2.3.dist-info}/METADATA +1 -1
- {GameSentenceMiner-2.2.2.post2.dist-info → GameSentenceMiner-2.2.3.dist-info}/RECORD +8 -8
- {GameSentenceMiner-2.2.2.post2.dist-info → GameSentenceMiner-2.2.3.dist-info}/WHEEL +0 -0
- {GameSentenceMiner-2.2.2.post2.dist-info → GameSentenceMiner-2.2.3.dist-info}/entry_points.txt +0 -0
- {GameSentenceMiner-2.2.2.post2.dist-info → GameSentenceMiner-2.2.3.dist-info}/top_level.txt +0 -0
GameSentenceMiner/config_gui.py
CHANGED
@@ -813,7 +813,7 @@ class ConfigApp:
|
|
813
813
|
def add_profile(self):
|
814
814
|
new_profile_name = simpledialog.askstring("Input", "Enter new profile name:")
|
815
815
|
if new_profile_name:
|
816
|
-
self.master_config.configs[new_profile_name] = self.master_config.
|
816
|
+
self.master_config.configs[new_profile_name] = self.master_config.get_default_config()
|
817
817
|
self.profile_combobox['values'] = list(self.master_config.configs.keys())
|
818
818
|
self.profile_combobox.set(new_profile_name)
|
819
819
|
self.save_settings()
|
GameSentenceMiner/gsm.py
CHANGED
@@ -89,22 +89,19 @@ class VideoToAudioHandler(FileSystemEventHandler):
|
|
89
89
|
should_update_audio = False
|
90
90
|
vad_trimmed_audio = ""
|
91
91
|
logger.info("No SentenceAudio Field in config, skipping audio processing!")
|
92
|
-
try:
|
93
92
|
# Only update sentenceaudio if it's not present. Want to avoid accidentally overwriting sentence audio
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
except FileNotFoundError as f:
|
105
|
-
logger.error("Something went wrong with processing, anki card not updated")
|
93
|
+
try:
|
94
|
+
if get_config().anki.update_anki and last_note:
|
95
|
+
anki.update_anki_card(last_note, note, audio_path=final_audio_output, video_path=video_path,
|
96
|
+
tango=tango,
|
97
|
+
should_update_audio=should_update_audio,
|
98
|
+
ss_time=ss_timing)
|
99
|
+
elif get_config().features.notify_on_update and should_update_audio:
|
100
|
+
notification.send_audio_generated_notification(vad_trimmed_audio)
|
101
|
+
except Exception as e:
|
102
|
+
logger.exception(f"Card failed to update! Maybe it was removed? {e}")
|
106
103
|
except Exception as e:
|
107
|
-
logger.
|
104
|
+
logger.exception(f"Some error was hit catching to allow further work to be done: {e}")
|
108
105
|
if get_config().paths.remove_video and os.path.exists(video_path):
|
109
106
|
os.remove(video_path) # Optionally remove the video after conversion
|
110
107
|
if get_config().paths.remove_audio and os.path.exists(vad_trimmed_audio):
|
@@ -1,10 +1,10 @@
|
|
1
1
|
GameSentenceMiner/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
2
|
GameSentenceMiner/anki.py,sha256=_yaHQZwOYooQssfJ5hbST5cC6vsffkSEvUIeMouwQZw,9208
|
3
|
-
GameSentenceMiner/config_gui.py,sha256=
|
4
|
-
GameSentenceMiner/configuration.py,sha256=
|
3
|
+
GameSentenceMiner/config_gui.py,sha256=PMJ-Ghyp_Vgt2w9CwDpN5rc41QHlLtnmiYR50Hy9p_s,49011
|
4
|
+
GameSentenceMiner/configuration.py,sha256=tkbZfVf-XxmVdJzfjS6GUvy878qnnHa_KxXGAN0UEqI,14089
|
5
5
|
GameSentenceMiner/ffmpeg.py,sha256=txTpco-IGWtfF8vIiWUzrtgI5TA1xPVIK-WJWxU02mM,10878
|
6
6
|
GameSentenceMiner/gametext.py,sha256=pAovclbBSLigoyJMcdhNrieFDDPLJY3htHBGhjQ2Xk0,4081
|
7
|
-
GameSentenceMiner/gsm.py,sha256=
|
7
|
+
GameSentenceMiner/gsm.py,sha256=Z_e29j-RYsEC6JGLP-wONocv1wfojDa06FIzxUz8pE8,16285
|
8
8
|
GameSentenceMiner/model.py,sha256=oh8VVT8T1UKekbmP6MGNgQ8jIuQ_7Rg4GPzDCn2kJo8,1999
|
9
9
|
GameSentenceMiner/notification.py,sha256=WBaQWoPNhW4XqdPBUmxPBgjk0ngzH_4v9zMQ-XQAKC8,2010
|
10
10
|
GameSentenceMiner/obs.py,sha256=3Flcjxy812VpF78EPI7sxlGx6yyM3GfqzlinW17SK20,6231
|
@@ -17,8 +17,8 @@ GameSentenceMiner/vad/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
|
|
17
17
|
GameSentenceMiner/vad/silero_trim.py,sha256=syDJX_KbFmdyFFtnQqYTD0tICsUCJizYhs-atPgXtxA,1549
|
18
18
|
GameSentenceMiner/vad/vosk_helper.py,sha256=-AAwK0cgOC5rK3_gL0sQgrPJ75E49g_PxZR4d5ckwc4,5826
|
19
19
|
GameSentenceMiner/vad/whisper_helper.py,sha256=bpR1HVnJRn9H5u8XaHBqBJ6JwIjzqn-Fajps8QmQ4zc,3411
|
20
|
-
GameSentenceMiner-2.2.
|
21
|
-
GameSentenceMiner-2.2.
|
22
|
-
GameSentenceMiner-2.2.
|
23
|
-
GameSentenceMiner-2.2.
|
24
|
-
GameSentenceMiner-2.2.
|
20
|
+
GameSentenceMiner-2.2.3.dist-info/METADATA,sha256=8tTYMSToJ11bkM8XMjZLEihZh_VunSVXm1WqI4uqusY,10125
|
21
|
+
GameSentenceMiner-2.2.3.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
22
|
+
GameSentenceMiner-2.2.3.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
|
23
|
+
GameSentenceMiner-2.2.3.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
|
24
|
+
GameSentenceMiner-2.2.3.dist-info/RECORD,,
|
File without changes
|
{GameSentenceMiner-2.2.2.post2.dist-info → GameSentenceMiner-2.2.3.dist-info}/entry_points.txt
RENAMED
File without changes
|
File without changes
|