Tightended the constraints of Spotify.__eq__.

This commit is contained in:
Dante Dam
2019-05-09 06:11:20 -04:00
committed by Rapptz
parent 25d9337481
commit 01588fa34b
+2 -1
View File
@@ -497,7 +497,8 @@ class Spotify:
return 'Spotify' return 'Spotify'
def __eq__(self, other): def __eq__(self, other):
return isinstance(other, Spotify) and other._session_id == self._session_id return (isinstance(other, Spotify) and other._session_id == self._session_id
and other._sync_id == self._sync_id and other.start == self.start)
def __ne__(self, other): def __ne__(self, other):
return not self.__eq__(other) return not self.__eq__(other)