From: Kristoffer Grönlund Date: Fri, 8 Jan 2010 10:59:14 +0000 (+0100) Subject: Fixed some bugs in showalbum X-Git-Url: http://git.maemo.org/git/?p=jamaendo;a=commitdiff_plain;h=2bd6a0126ba7de7db8249c65114c37ca9687dc28 Fixed some bugs in showalbum --- diff --git a/jamaui/showalbum.py b/jamaui/showalbum.py index 07a0e6d..f1933d2 100644 --- a/jamaui/showalbum.py +++ b/jamaui/showalbum.py @@ -36,7 +36,7 @@ import util import logging from albumlist import TrackList from playlists import add_to_playlist -from fetcher import fetcher +from fetcher import Fetcher import webbrowser @@ -123,10 +123,10 @@ class ShowAlbum(hildon.StackableWindow): if self.fetcher: self.fetcher.stop() self.fetcher = None - self.fetcher = Fetcher(jamaendo.starred_radios, self, - on_item = self.on_radio_result, - on_ok = self.on_radio_complete, - on_fail = self.on_radio_complete) + self.fetcher = Fetcher(lambda: jamaendo.get_tracks(self.album.ID), self, + on_item = self.on_track_result, + on_ok = self.on_track_complete, + on_fail = self.on_track_complete) self.fetcher.start() def on_track_result(self, wnd, item):