Add possible partial fix for #82
This commit is contained in:
parent
d125afd45f
commit
6b47ae15b7
|
@ -2406,6 +2406,7 @@ class Track(_BaseObject, _Taggable):
|
||||||
artist = None
|
artist = None
|
||||||
title = None
|
title = None
|
||||||
username = None
|
username = None
|
||||||
|
__hash__ = _BaseObject.__hash__
|
||||||
|
|
||||||
def __init__(self, artist, title, network, username=None):
|
def __init__(self, artist, title, network, username=None):
|
||||||
_BaseObject.__init__(self, network)
|
_BaseObject.__init__(self, network)
|
||||||
|
@ -3045,9 +3046,6 @@ class User(_BaseObject):
|
||||||
seq = []
|
seq = []
|
||||||
for track in _collect_nodes(limit, self, "user.getRecentTracks", True, params):
|
for track in _collect_nodes(limit, self, "user.getRecentTracks", True, params):
|
||||||
|
|
||||||
print(type(track))
|
|
||||||
print(track)
|
|
||||||
print(track.toprettyxml())
|
|
||||||
if track.hasAttribute('nowplaying'):
|
if track.hasAttribute('nowplaying'):
|
||||||
continue #to prevent the now playing track from sneaking in here
|
continue #to prevent the now playing track from sneaking in here
|
||||||
|
|
||||||
|
@ -3058,7 +3056,6 @@ class User(_BaseObject):
|
||||||
|
|
||||||
seq.append(PlayedTrack(Track(artist, title, self.network), date, timestamp))
|
seq.append(PlayedTrack(Track(artist, title, self.network), date, timestamp))
|
||||||
|
|
||||||
print(seq)
|
|
||||||
return seq
|
return seq
|
||||||
|
|
||||||
def get_id(self):
|
def get_id(self):
|
||||||
|
|
Loading…
Reference in a new issue