Skip to content

Commit ce376a3

Browse files
author
Jonas Dellinger
committed
Fixed wrong comparing of track objects
1 parent af7dcf8 commit ce376a3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

SpotifyAPI/Local/SpotifyLocalAPI.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ private void ElapsedTick(object sender, ElapsedEventArgs e)
9898
}
9999
if (newStatusResponse.Track != null && _eventStatusResponse.Track != null)
100100
{
101-
if (newStatusResponse.Track.TrackResource?.Name != _eventStatusResponse.Track.TrackResource?.Name)
101+
if (newStatusResponse.Track.TrackResource?.Uri != _eventStatusResponse.Track.TrackResource?.Uri)
102102
{
103103
OnTrackChange?.Invoke(this, new TrackChangeEventArgs()
104104
{

0 commit comments

Comments
 (0)