Skip to content

Commit

Permalink
Fixes bug when !isSaveAudioFile and it embeds the url regardless (#21)
Browse files Browse the repository at this point in the history
* Fixes bug when !isSaveAudioFile and it embeds the url regardless

* Updates version number
  • Loading branch information
Mikodin authored Feb 8, 2025
1 parent 593b60f commit 01a61fd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "scribe",
"name": "Scribe",
"version": "1.1.3",
"version": "1.1.4",
"minAppVersion": "0.15.0",
"description": "Record voice notes, Fill in lost thoughts, Transcribe the audio, Summarize & Visualize the text - All in one clip",
"author": "Mike Alicea",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-scribe-plugin",
"version": "1.1.3",
"version": "1.1.4",
"description": "An Obsidian plugin for recording voice notes, transcribing the audio, and summarizing the text - All in one",
"main": "build/main.js",
"scripts": {
Expand Down
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,10 +291,13 @@ export default class ScribePlugin extends Plugin {
? '# Transcript in progress'
: '\n# Transcript in progress';

const transcriptTextToAppendToNote = isSaveAudioFileActive
? `# Transcript\n![[${audioRecordingFile.path}]]\n${transcript}`
: `# Transcript\n${transcript}`;
await appendTextToNote(
this,
note,
`# Transcript\n![[${audioRecordingFile.path}]]\n${transcript}`,
transcriptTextToAppendToNote,
inProgressHeaderToReplace,
);

Expand Down

0 comments on commit 01a61fd

Please sign in to comment.