summaryrefslogtreecommitdiff
path: root/nephilim/song.py
diff options
context:
space:
mode:
Diffstat (limited to 'nephilim/song.py')
-rw-r--r--nephilim/song.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/nephilim/song.py b/nephilim/song.py
index df111cd..d2221ec 100644
--- a/nephilim/song.py
+++ b/nephilim/song.py
@@ -55,6 +55,11 @@ class Song:
return NotImplemented
return self._data['file'] == other._data['file']
+ def __ne__(self, other):
+ if not isinstance(other, Song):
+ return NotImplemented
+ return self._data['file'] != other._data['file']
+
def id(self):
"""Get the song's playlist ID. (-1 if not in playlist)."""
return self.tag('id', -1)