Skip to content

Commit a967b6c

Browse files
fix: Start playback when Spotify is idle with playNow
When Spotify has no track loaded (idle state), device activation was returning true, causing QueueTracksAsync to skip starting playback. Now returns false so caller starts the first track. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 7e370bd commit a967b6c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Lfm.Spotify/SpotifyStreamer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1282,7 +1282,7 @@ private async Task<bool> EnsurePlaybackActiveAsync(string? device = null)
12821282
{
12831283
Console.WriteLine($"✅ Activated device: {activeDevice.Name}");
12841284
await Task.Delay(1000); // Give Spotify a moment to activate the device
1285-
return true;
1285+
return false; // Device ready, but no playback - caller should start first track
12861286
}
12871287
}
12881288

0 commit comments

Comments
 (0)