Hashable artist and album, for #82

This commit is contained in:
hugovk 2014-03-02 14:46:13 +02:00
parent 1b5a09b404
commit 3fe197bbcc
3 changed files with 29 additions and 4 deletions

View file

@ -1189,6 +1189,7 @@ class Album(_BaseObject, _Taggable):
title = None
artist = None
username = None
__hash__ = _BaseObject.__hash__
def __init__(self, artist, title, network, username=None):
"""
@ -1358,6 +1359,7 @@ class Artist(_BaseObject, _Taggable):
name = None
username = None
__hash__ = _BaseObject.__hash__
def __init__(self, name, network, username=None):
"""Create an artist object.