Add changelog entry for #72 and remove old comments.
This commit is contained in:
parent
e01e5ff576
commit
ee599b6235
@ -68,6 +68,9 @@ v0.8 (in development)
|
||||
cleanup code would wait for an response that would never come inside the
|
||||
event loop, blocking everything else.
|
||||
|
||||
- Created a Spotify track proxy that will switch to using loaded data as soon
|
||||
as it becomes available. Fixes :issue:`72`.
|
||||
|
||||
|
||||
v0.7.3 (2012-08-11)
|
||||
===================
|
||||
|
||||
@ -11,6 +11,7 @@ logger = logging.getLogger('mopidy.backends.spotify.library')
|
||||
|
||||
|
||||
class SpotifyTrack(Track):
|
||||
"""Proxy object for unloaded Spotify tracks."""
|
||||
def __init__(self, uri):
|
||||
self._spotify_track = Link.from_string(uri).as_track()
|
||||
self._unloaded_track = Track(uri=uri, name=u'[loading...]')
|
||||
@ -34,15 +35,15 @@ class SpotifyTrack(Track):
|
||||
def __repr__(self):
|
||||
return self._proxy.__repr__()
|
||||
|
||||
def __hash__(self): # hash on just uri for consistency?
|
||||
def __hash__(self):
|
||||
return hash(self._proxy.uri)
|
||||
|
||||
def __eq__(self, other): # compare on just uri for consistency?
|
||||
def __eq__(self, other):
|
||||
if not isinstance(other, Track):
|
||||
return False
|
||||
return self._proxy.uri == other.uri
|
||||
|
||||
def copy(self, **values): # is it okay to return a plain track?
|
||||
def copy(self, **values):
|
||||
return self._proxy.copy(**values)
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user