GameSentenceMiner 2.6.0__py3-none-any.whl → 2.6.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/anki.py CHANGED
@@ -64,12 +64,10 @@ def update_anki_card(last_note: AnkiCard, note=None, audio_path='', video_path='
64
64
  if not get_config().screenshot.enabled:
65
65
  logger.info("Skipping Adding Screenshot to Anki, Screenshot is disabled in settings")
66
66
 
67
- if get_config().ai.enabled:
67
+ if note and 'fields' in note and get_config().ai.enabled:
68
68
  sentence_field = note['fields'].get(get_config().anki.sentence_field, {})
69
69
  sentence_to_translate = sentence_field if sentence_field else last_note.get_field(
70
70
  get_config().anki.sentence_field)
71
-
72
- if note and 'fields' in note:
73
71
  translation = translate_with_context(get_all_lines(), sentence_to_translate,
74
72
  game_line.index, get_current_game())
75
73
  logger.info(translation)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: GameSentenceMiner
3
- Version: 2.6.0
3
+ Version: 2.6.1
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,5 +1,5 @@
1
1
  GameSentenceMiner/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- GameSentenceMiner/anki.py,sha256=zcusTxPaSvdmE6sO1az4xTEu9qfU3dRCLjZPa23QiyQ,14087
2
+ GameSentenceMiner/anki.py,sha256=6cXCPJRp_en0ZopRCaH7vXJkfdRDFftsX15yLvCvNmI,14082
3
3
  GameSentenceMiner/config_gui.py,sha256=AifBgNaeWcBhuFoQz8QJ4srM1Ck8KjHmnOmI-aRcFHg,66965
4
4
  GameSentenceMiner/configuration.py,sha256=F-WOOjofV-GrBX2SCpArw5LMqpMGf_KCOzjvQeZZlhM,20287
5
5
  GameSentenceMiner/ffmpeg.py,sha256=iUj-1uLLJla6jjGDKuc1FbcXjMogYpoDhrQqCbQFcWA,13359
@@ -23,9 +23,9 @@ GameSentenceMiner/vad/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
23
23
  GameSentenceMiner/vad/silero_trim.py,sha256=ULf3zwS-JMsY82cKF7gZxREHw8L6lgpWF2U1YqgE9Oc,1681
24
24
  GameSentenceMiner/vad/vosk_helper.py,sha256=125X8C9NxFPlWWpoNsbOnEqKx8RCjXN109zNx_QXhyg,6070
25
25
  GameSentenceMiner/vad/whisper_helper.py,sha256=JJ-iltCh813XdjyEw0Wn5DaErf6PDqfH0Efu1Md8cIY,3543
26
- gamesentenceminer-2.6.0.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
27
- gamesentenceminer-2.6.0.dist-info/METADATA,sha256=gAar-A4wWYPQDZXuRSeY_lDnpxInzifk8vNuxLPcE6I,5467
28
- gamesentenceminer-2.6.0.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
29
- gamesentenceminer-2.6.0.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
30
- gamesentenceminer-2.6.0.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
31
- gamesentenceminer-2.6.0.dist-info/RECORD,,
26
+ gamesentenceminer-2.6.1.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
27
+ gamesentenceminer-2.6.1.dist-info/METADATA,sha256=d9eL6-5Xs0DRGNJPFY3wol_7u3eInO1T5obTwdWhvxQ,5467
28
+ gamesentenceminer-2.6.1.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
29
+ gamesentenceminer-2.6.1.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
30
+ gamesentenceminer-2.6.1.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
31
+ gamesentenceminer-2.6.1.dist-info/RECORD,,