Compare commits

...

2 Commits

Author SHA1 Message Date
b4a728d0c6 chore: bump version to 0.3.1
All checks were successful
Build and Publish / build-and-publish (push) Successful in 18s
Signed-off-by: Max P. <Mail@MPassarello.de>
2025-04-30 15:21:30 +02:00
f33b583aec feat(voice_to_text_tray): enhance journal creation with error handling and timestamp formatting
Signed-off-by: Max P. <Mail@MPassarello.de>
2025-04-30 15:21:24 +02:00
2 changed files with 10 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
[project]
name = "pyvtt"
version = "0.3.0"
version = "0.3.1"
description = "Python Voice to Text + LLMA"
authors = [{ name = "Max P.", email = "Mail@MPassarello.de" }]
license = { text = "MIT" }

View File

@@ -100,9 +100,17 @@ class WhisperWorker(QThread):
today = datetime.date.today().strftime("%Y.%m.%d")
journal_path = os.path.join(CONFIGURATION["journal_path"], f"{today} - {CURRENT_PRESET['journal_name']}.md")
now = datetime.datetime.now().strftime("%H:%M")
if not os.path.exists(journal_path):
try:
with open(journal_path, "w") as f:
f.write(f"# {CURRENT_PRESET['journal_name']} - {today}\n\n")
except Exception as e:
print(f"Journal Erstellungsfehler: {e}")
notify("Fehler", "Ein Fehler beim Erstellen des Journals ist aufgetreten!")
return
try:
with open(journal_path, "a") as f:
f.write(f"## {now}\n")
f.write(f"## {now} Uhr\n")
f.write(f"{formatted_result}\n\n")
except Exception as e:
print(f"Journal Fehler: {e}")