Skip to content

Speakr is a personal, self-hosted web application designed for transcribing audio recordings

Python

Hide audio player for incognito recordings to prevent 404 errors

Murtaza Nasir3b3ced80ce24
diff --git a/templates/components/detail/audio-player.html b/templates/components/detail/audio-player.html
index e9be9fb2..d7f3db7e 100644
--- a/templates/components/detail/audio-player.html
+++ b/templates/components/detail/audio-player.html
@@ -6,6 +6,12 @@
<i class="fas fa-info-circle"></i>
<span v-text="t('help.audioDeletedMessage')"></span>
</div>
+ <!-- Show message for incognito recordings (no audio stored) -->
+ <div v-else-if="selectedRecording.incognito"
+ class="text-[var(--text-muted)] text-sm flex items-center gap-2">
+ <i class="fas fa-user-secret"></i>
+ <span>Audio not stored in incognito mode</span>
+ </div>
<!-- Custom Audio Player -->
<div v-else>
<!-- Hidden audio element -->
diff --git a/templates/components/detail/desktop-right-panel.html b/templates/components/detail/desktop-right-panel.html
index 60c8ccf8..610482ae 100644
--- a/templates/components/detail/desktop-right-panel.html
+++ b/templates/components/detail/desktop-right-panel.html
@@ -8,6 +8,12 @@
<i class="fas fa-info-circle"></i>
<span v-text="t('help.audioDeletedMessage')"></span>
</div>
+ <!-- Show message for incognito recordings (no audio stored) -->
+ <div v-else-if="selectedRecording.incognito"
+ class="text-[var(--text-muted)] text-sm flex items-center gap-2 py-2">
+ <i class="fas fa-user-secret"></i>
+ <span>Audio not stored in incognito mode</span>
+ </div>
<!-- Custom Audio Player Card -->
<div v-else class="bg-[var(--bg-tertiary)] rounded-xl p-4 shadow-sm border border-[var(--border-primary)] overflow-hidden">
<!-- Hidden audio element -->
diff --git a/templates/modals/asr-editor-modal.html b/templates/modals/asr-editor-modal.html
index 85366f2b..97e6a3c8 100644
--- a/templates/modals/asr-editor-modal.html
+++ b/templates/modals/asr-editor-modal.html
@@ -16,6 +16,12 @@
<i class="fas fa-info-circle"></i>
<span v-text="t('help.audioDeletedMessage')"></span>
</div>
+ <!-- Show message for incognito recordings -->
+ <div v-else-if="selectedRecording.incognito"
+ class="bg-[var(--bg-tertiary)] border border-[var(--border-primary)] text-[var(--text-secondary)] px-4 py-3 rounded-lg flex items-center gap-2 text-sm">
+ <i class="fas fa-user-secret"></i>
+ <span>Audio not stored in incognito mode</span>
+ </div>
<!-- Custom Audio Player (Independent from main player) -->
<div v-else class="flex items-center gap-3">
<audio ref="asrEditorAudioRef" class="hidden"
diff --git a/templates/modals/speaker-modal.html b/templates/modals/speaker-modal.html
index 9092c344..58259103 100644
--- a/templates/modals/speaker-modal.html
+++ b/templates/modals/speaker-modal.html
@@ -136,6 +136,12 @@
<i class="fas fa-info-circle"></i>
<span v-text="t('help.audioDeletedMessage')"></span>
</div>
+ <!-- Show message for incognito recordings -->
+ <div v-else-if="selectedRecording.incognito"
+ class="text-[var(--text-muted)] text-xs flex items-center gap-2">
+ <i class="fas fa-user-secret"></i>
+ <span>Audio not stored in incognito mode</span>
+ </div>
<!-- Custom Audio Player (Independent from main player) -->
<div v-else class="flex items-center gap-2">
<audio ref="speakerModalAudioRef" class="hidden"