Tightended the constraints of Spotify.__eq__.

This commit is contained in:
Dante Dam 2019-04-25 17:55:38 -07:00 committed by Rapptz
parent 25d9337481
commit 01588fa34b

View File

@ -497,7 +497,8 @@ class Spotify:
return 'Spotify'
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):
return not self.__eq__(other)