From 6b47ae15b7f8e8f49dd61fe234d7bd7e08fc8f99 Mon Sep 17 00:00:00 2001 From: hugovk Date: Sun, 2 Mar 2014 13:12:14 +0200 Subject: [PATCH] Add possible partial fix for #82 --- pylast.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pylast.py b/pylast.py index 4cc9a79..c34a49f 100644 --- a/pylast.py +++ b/pylast.py @@ -2406,6 +2406,7 @@ class Track(_BaseObject, _Taggable): artist = None title = None username = None + __hash__ = _BaseObject.__hash__ def __init__(self, artist, title, network, username=None): _BaseObject.__init__(self, network) @@ -3045,9 +3046,6 @@ class User(_BaseObject): seq = [] for track in _collect_nodes(limit, self, "user.getRecentTracks", True, params): - print(type(track)) - print(track) - print(track.toprettyxml()) if track.hasAttribute('nowplaying'): 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)) - print(seq) return seq def get_id(self):