Skip to content

Commit b4a4af7

Browse files
authored
Update fast-search-card.js
1 parent 849bc9c commit b4a4af7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

dist/fast-search-card.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12425,10 +12425,9 @@ class FastSearchCard extends HTMLElement {
1242512425

1242612426
console.log(`🔍 TTS finished after ${Math.round(ttsAge/1000)}s, player state: ${currentState?.state}`);
1242712427

12428-
// Nur fortsetzen wenn:
12429-
// 1. Player nicht manuell gestartet wurde während TTS
12430-
// 2. TTS nicht zu alt ist (max 60s)
12431-
if (currentState?.state !== 'playing' && ttsAge < 60000) {
12428+
// Nur fortsetzen wenn TTS nicht zu alt ist
12429+
// (Player state ist unreliable bei kurzen TTS)
12430+
if (ttsAge < 10000) { // Max 10 Sekunden statt 60
1243212431
console.log('🎵 Auto-resuming music after TTS (was playing before):', entityId);
1243312432
setTimeout(() => {
1243412433
this.callMusicAssistantService('media_play', entityId);

0 commit comments

Comments
 (0)