GameSentenceMiner 2.8.51__py3-none-any.whl → 2.8.53__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.
@@ -865,9 +865,10 @@ class ConfigApp:
865
865
  # Define display names and their corresponding values
866
866
  self.ffmpeg_audio_preset_options_map = {
867
867
  "No Re-encode" : "",
868
- "Simple loudness normalization (Simplest, Start Here)": "-c:a libopus -f opus -af \"loudnorm=I=-23:LRA=7:TP=-2\"",
869
- "Downmix to mono with normalization (Recommended(?))": "-c:a libopus -ac 1 -f opus -application voip -apply_phase_inv 0 -af \"loudnorm=I=-23:dual_mono=true\"",
870
- "Downmix to mono, 30kbps, normalized (Optimal(?))": "-c:a libopus -b:a 30k -ac 1 -f opus -application voip -apply_phase_inv 0 -af \"loudnorm=I=-23:dual_mono=true\"",
868
+ "Simple Fade-in, Avoids Audio Clipping (Default)": "-c:a libopus -f opus -af \"afade=t=in:d=0.10\"",
869
+ "Simple loudness normalization (Simplest, Start Here)": "-c:a libopus -f opus -af \"loudnorm=I=-23:TP=-2,afade=t=in:d=0.10\"",
870
+ "Downmix to mono with normalization (Recommended(?))": "-c:a libopus -ac 1 -f opus -af \"loudnorm=I=-23:TP=-2:dual_mono=true,afade=t=in:d=0.10\"",
871
+ "Downmix to mono, 30kbps, normalized (Optimal(?))": "-c:a libopus -b:a 30k -ac 1 -f opus -af \"loudnorm=I=-23:TP=-2:dual_mono=true,afade=t=in:d=0.10\"",
871
872
  "Custom": get_config().audio.custom_encode_settings,
872
873
  }
873
874
 
@@ -133,7 +133,7 @@ class Audio:
133
133
  extension: str = 'opus'
134
134
  beginning_offset: float = 0.0
135
135
  end_offset: float = 0.5
136
- ffmpeg_reencode_options: str = ''
136
+ ffmpeg_reencode_options: str = '-c:a libopus -f opus -af \"afade=t=in:d=0.10\"'
137
137
  external_tool: str = ""
138
138
  anki_media_collection: str = ""
139
139
  external_tool_enabled: bool = True
@@ -320,12 +320,14 @@ def run_oneocr(ocr_config: OCRConfig, area=False):
320
320
  screen_areas = []
321
321
  if not ssonly:
322
322
  for rect_config in ocr_config.rectangles:
323
- coords = rect_config.coordinates
324
- monitor_config = rect_config.monitor
325
- screen_area = ",".join(str(c) for c in coords) if area else None
326
- if screen_area:
327
- screen_areas.append(screen_area)
323
+ if not rect_config.is_excluded:
324
+ coords = rect_config.coordinates
325
+ monitor_config = rect_config.monitor
326
+ screen_area = ",".join(str(c) for c in coords) if area else None
327
+ if screen_area:
328
+ screen_areas.append(screen_area)
328
329
  exclusions = list(rect.coordinates for rect in list(filter(lambda x: x.is_excluded, ocr_config.rectangles)))
330
+
329
331
  run.init_config(False)
330
332
  run.run(read_from="screencapture" if not ssonly else "clipboard",
331
333
  read_from_secondary="clipboard" if not ssonly else None,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: GameSentenceMiner
3
- Version: 2.8.51
3
+ Version: 2.8.53
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,7 +1,7 @@
1
1
  GameSentenceMiner/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  GameSentenceMiner/anki.py,sha256=bChJ1YU80muhvR8fjY9KAJEs0M0bpe-X_uMhjJBUC4k,14530
3
- GameSentenceMiner/config_gui.py,sha256=J3R_oh4edAULY9_0UEuEnRhRczakyta_f5hnegpC1uQ,77373
4
- GameSentenceMiner/configuration.py,sha256=vAKzDD8bUZehQK2XRKTnMDCLhjUVxoQLYrVkHuLPTEY,22493
3
+ GameSentenceMiner/config_gui.py,sha256=vwW569M-ZQPZEkprluDuKlPRoYTm2UMs2nPMDZtlorE,77472
4
+ GameSentenceMiner/configuration.py,sha256=EMqtnK9jHFmCht2vi3dsDRekidr3pIfdyZ-ycmH6aOg,22539
5
5
  GameSentenceMiner/electron_config.py,sha256=dGcPYCISPehXubYSzsDuI2Gl092MYK0u3bTnkL9Jh1Y,9787
6
6
  GameSentenceMiner/ffmpeg.py,sha256=DX-2J1KZBKOPC8syR73YhDHwKIR4oNPrGuPl4l8is-4,18255
7
7
  GameSentenceMiner/gametext.py,sha256=hcyZQ69B7xB5ZG85wLzM5au7ZPKxmeUXsmUD26oyk_0,5660
@@ -27,7 +27,7 @@ GameSentenceMiner/ocr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
27
27
  GameSentenceMiner/ocr/gsm_ocr_config.py,sha256=fEQ2o2NXksGRHpueO8c4TfAp75GEdAtAr1ngTFOsdpg,2257
28
28
  GameSentenceMiner/ocr/ocrconfig.py,sha256=_tY8mjnzHMJrLS8E5pHqYXZjMuLoGKYgJwdhYgN-ny4,6466
29
29
  GameSentenceMiner/ocr/owocr_area_selector.py,sha256=Q8ETMHL7BKMA1mbtjrntDLyqCQB0lZ5T4RCZsodjH7Y,47186
30
- GameSentenceMiner/ocr/owocr_helper.py,sha256=ZUMz1moBdoFwYkUGBBzqW_V8MANL-zzQd8vsj5Br538,17661
30
+ GameSentenceMiner/ocr/owocr_helper.py,sha256=EMdq8jga3kKx8u19LSgqwnZIhR8_YDMqydACVzojUDo,17726
31
31
  GameSentenceMiner/owocr/owocr/__init__.py,sha256=opjBOyGGyEqZCE6YdZPnyt7nVfiwyELHsXA0jAsjm14,25
32
32
  GameSentenceMiner/owocr/owocr/__main__.py,sha256=XQaqZY99EKoCpU-gWQjNbTs7Kg17HvBVE7JY8LqIE0o,157
33
33
  GameSentenceMiner/owocr/owocr/config.py,sha256=qM7kISHdUhuygGXOxmgU6Ef2nwBShrZtdqu4InDCViE,8103
@@ -54,9 +54,9 @@ GameSentenceMiner/web/static/web-app-manifest-512x512.png,sha256=wyqgCWCrLEUxSRX
54
54
  GameSentenceMiner/web/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
55
55
  GameSentenceMiner/web/templates/text_replacements.html,sha256=tV5c8mCaWSt_vKuUpbdbLAzXZ3ATZeDvQ9PnnAfqY0M,8598
56
56
  GameSentenceMiner/web/templates/utility.html,sha256=1vN3nK3IT-iNhMEj-k6JRz9uc6D87UUL9k7Bp2Espiw,16946
57
- gamesentenceminer-2.8.51.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
58
- gamesentenceminer-2.8.51.dist-info/METADATA,sha256=ohGZjJi67WnaD8AfD4uxgpOBkfIQhZWeLmMSvFDNYOM,7218
59
- gamesentenceminer-2.8.51.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
60
- gamesentenceminer-2.8.51.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
61
- gamesentenceminer-2.8.51.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
62
- gamesentenceminer-2.8.51.dist-info/RECORD,,
57
+ gamesentenceminer-2.8.53.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
58
+ gamesentenceminer-2.8.53.dist-info/METADATA,sha256=7DmDJ5NwFHQE84gOI19yGtm6lpNuRVbXpNHjHRNjUF4,7218
59
+ gamesentenceminer-2.8.53.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
60
+ gamesentenceminer-2.8.53.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
61
+ gamesentenceminer-2.8.53.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
62
+ gamesentenceminer-2.8.53.dist-info/RECORD,,